Module: Spree::Storefront::DeviseConcern
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/controllers/concerns/spree/storefront/devise_concern.rb
Instance Method Summary collapse
Instance Method Details
#password_path(_resource_or_scope = nil) ⇒ Object
43 44 45 |
# File 'app/controllers/concerns/spree/storefront/devise_concern.rb', line 43 def password_path(_resource_or_scope = nil) send("#{Spree.user_class.model_name.singular_route_key}_password_path") end |
#stored_location ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 |
# File 'app/controllers/concerns/spree/storefront/devise_concern.rb', line 31 def stored_location return unless defined?(after_sign_in_path_for) return unless defined?(store_location_for) return unless defined?(Devise) path = after_sign_in_path_for(Devise.mappings.keys.first) store_location_for(Devise.mappings.keys.first, path) path end |