diff --git a/app/controllers/api/my_shows/episodes_controller.rb b/app/controllers/api/my_shows/episodes_controller.rb index 1ac22508..0f64bd2c 100644 --- a/app/controllers/api/my_shows/episodes_controller.rb +++ b/app/controllers/api/my_shows/episodes_controller.rb @@ -24,7 +24,7 @@ def update end def destroy - @scheduled_show = @current_radio.scheduled_shows.friendly.find(params[:id]) + @scheduled_show = @current_radio.scheduled_shows.find(params[:id]) authorize! :destroy, @scheduled_show if @scheduled_show.destroy render json: @scheduled_show