Module: Refinery::Authentication::Devise::System
- Defined in:
- lib/refinery/authentication/devise/system.rb
Instance Method Summary collapse
-
#after_sign_in_path_for(resource_or_scope) ⇒ Object
This just defines the devise method for after sign in to support extension namespace isolation…
- #after_sign_out_path_for(resource_or_scope) ⇒ Object
-
#signed_in_root_path(resource_or_scope) ⇒ Object
This defines the devise method for refinery routes.
Instance Method Details
#after_sign_in_path_for(resource_or_scope) ⇒ Object
This just defines the devise method for after sign in to support extension namespace isolation…
48 49 50 51 52 |
# File 'lib/refinery/authentication/devise/system.rb', line 48 def after_sign_in_path_for(resource_or_scope) pop_stored_location || sanitized_stored_location_for(resource_or_scope) || signed_in_root_path(resource_or_scope) end |
#after_sign_out_path_for(resource_or_scope) ⇒ Object
54 55 56 |
# File 'lib/refinery/authentication/devise/system.rb', line 54 def after_sign_out_path_for(resource_or_scope) refinery.login_path end |
#signed_in_root_path(resource_or_scope) ⇒ Object
This defines the devise method for refinery routes
24 25 26 27 28 29 30 31 32 |
# File 'lib/refinery/authentication/devise/system.rb', line 24 def signed_in_root_path(resource_or_scope) scope = ::Devise::Mapping.find_scope!(resource_or_scope) home_path = "#{scope}_root_path" if respond_to?(home_path, true) refinery.send(home_path) else Refinery::Core.backend_path end end |