Class: ActionController::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/authentifyd/action_controller/base.rb

Direct Known Subclasses

Authentifyd::ApplicationController

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 (resource_or_scope)
  Authentifyd. || 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