Class: FlyAdmin::SubscriptionsController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- FlyAdmin::SubscriptionsController
- Defined in:
- app/controllers/fly_admin/subscriptions_controller.rb
Instance Method Summary collapse
Instance Method Details
#splash ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'app/controllers/fly_admin/subscriptions_controller.rb', line 15 def splash begin link = params[:back_url] + "?key=#{params[:customer_key]}" redirect_to link rescue Exception => e SUBSCRIPTION_LOG.error "#{e.message}\n\t#{e.backtrace}" render nothing: true end end |
#start ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/fly_admin/subscriptions_controller.rb', line 3 def start if @customer_key.present? # video can be in multiple categories , so save category_id session[:video] = JSON.generate({ :id => params[:video_id], :category_id => params[:category_id], :season_id => params[:season_id] }) link = "http://#{@alias}/continue?key=#{@customer_key}" redirect_to link else render nothing: true end end |