Class: SupplejackApi::Admin::SessionsController

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

Instance Method Summary collapse

Instance Method Details

#after_sign_in_path_for(resource) ⇒ Object



16
17
18
# File 'app/controllers/supplejack_api/admin/sessions_controller.rb', line 16

def (resource)
  stored_location_for(resource) || admin_users_path
end

#after_sign_out_path_for(_resource_or_scope) ⇒ Object



20
21
22
# File 'app/controllers/supplejack_api/admin/sessions_controller.rb', line 20

def after_sign_out_path_for(_resource_or_scope)
  new_admin_user_session_path
end