Class: ActionController::Base
- Inherits:
-
Object
- Object
- ActionController::Base
show all
- Defined in:
- lib/authentifyd/action_controller/base.rb
Instance Method Summary
collapse
Instance Method Details
#after_sign_in_path_for(resource_or_scope) ⇒ Object
7
8
9
|
# File 'lib/authentifyd/action_controller/base.rb', line 7
def after_sign_in_path_for(resource_or_scope)
Authentifyd.default_after_sign_in_path || root_path
end
|
#after_sign_out_path_for(resource_or_scope) ⇒ Object
3
4
5
|
# File 'lib/authentifyd/action_controller/base.rb', line 3
def after_sign_out_path_for(resource_or_scope)
params[:callback_url] || session[:referrer] || root_path
end
|