Class: ActionController::Base
- Inherits:
-
Object
- Object
- ActionController::Base
show all
- Defined in:
- app/controllers/authentifyd/application_controller.rb
Instance Method Summary
collapse
Instance Method Details
#after_sign_in_path_for(resource_or_scope) ⇒ Object
14
15
16
|
# File 'app/controllers/authentifyd/application_controller.rb', line 14
def after_sign_in_path_for(resource_or_scope)
Authentifyd.default_after_sign_in_path || orig_after_sign_in_path_for(resource_or_scope)
end
|
#after_sign_out_path_for(resource_or_scope) ⇒ Object
9
10
11
|
# File 'app/controllers/authentifyd/application_controller.rb', line 9
def after_sign_out_path_for(resource_or_scope)
params[:callback_url] || session[:referrer] || root_path
end
|
#orig_after_sign_in_path_for ⇒ Object
13
|
# File 'app/controllers/authentifyd/application_controller.rb', line 13
alias_method :orig_after_sign_in_path_for, :after_sign_in_path_for
|