class Wco::VideosController
def show
def show if params[:youtube_id].present? @video = Wco::Video.unscoped.where( :youtube_id => params[:youtube_id] ).first end @video ||= Wco::Video.unscoped.find params[:id] authorize! :show, @video respond_to do |format| format.html format.json do render :json => @video end end end