Module: Spree::Storefront::DeviseConcern

Extended by:
ActiveSupport::Concern
Included in:
UserPasswordsController, UserRegistrationsController, UserSessionsController
Defined in:
app/controllers/concerns/spree/storefront/devise_concern.rb

Instance Method Summary collapse

Instance Method Details

#password_path(_resource_or_scope = nil) ⇒ Object



37
38
39
# File 'app/controllers/concerns/spree/storefront/devise_concern.rb', line 37

def password_path(_resource_or_scope = nil)
  send("#{Spree.user_class.model_name.singular_route_key}_password_path")
end

#stored_locationObject



25
26
27
28
29
30
31
32
33
34
35
# File 'app/controllers/concerns/spree/storefront/devise_concern.rb', line 25

def stored_location
  return unless defined?()
  return unless defined?(store_location_for)
  return unless defined?(Devise)

  path = (Devise.mappings.keys.first)

  store_location_for(Devise.mappings.keys.first, path)

  path
end