show error message on chart if channel not found

This commit is contained in:
Lee Lawlor
2014-10-02 13:59:11 -04:00
parent 4f05d39cfb
commit 0260e5209a
4 changed files with 9 additions and 4 deletions

View File

@ -5,7 +5,7 @@ class FeedController < ApplicationController
def index
feed_factory = FeedFactory.new(params)
channel = Channel.find(params[:channel_id])
channel = feed_factory.channel
api_key = ApiKey.find_by_api_key(get_apikey)
@success = channel_permission?(channel, api_key)