Class: Iugu::SessionsController

Inherits:
Devise::SessionsController
  • Object
show all
Defined in:
app/controllers/iugu/sessions_controller.rb

Instance Method Summary collapse

Instance Method Details

#after_sign_in_path_for(resource_or_scope) ⇒ Object



6
7
8
# File 'app/controllers/iugu/sessions_controller.rb', line 6

def (resource_or_scope)
  params[:user].try(:[], :user_invitation).blank? ? IuguSDK::app_main_url : invitation_url
end

#after_sign_out_path_for(resource_or_scope) ⇒ Object



10
11
12
# File 'app/controllers/iugu/sessions_controller.rb', line 10

def after_sign_out_path_for(resource_or_scope)
  IuguSDK::app_root_url
end