Class: FlyAdmin::Imbs::SubscriptionsController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- FlyAdmin::Imbs::SubscriptionsController
- Defined in:
- app/controllers/fly_admin/imbs/subscriptions_controller.rb
Instance Method Summary collapse
Instance Method Details
#splash ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'app/controllers/fly_admin/imbs/subscriptions_controller.rb', line 10 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
2 3 4 5 6 7 8 |
# File 'app/controllers/fly_admin/imbs/subscriptions_controller.rb', line 2 def start save_data_to_session link_uuid = session[:link] || SiteConfig['default_uuid'] back_url = CGI.escape "http://#{request.host_with_port}/you_blocked" redirect_to "#{SiteConfig['wap_click_addr']}/start/#{link_uuid}?back_url=#{back_url}" end |