Class: ActionController::Base

Inherits:
Object
  • Object
show all
Defined in:
app/controllers/authentifyd/application_controller.rb

Direct Known Subclasses

Authentifyd::ApplicationController

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



13
# File 'app/controllers/authentifyd/application_controller.rb', line 13

alias_method :orig_after_sign_in_path_for, :after_sign_in_path_for