Class: Spree::UserPasswordsController
- Inherits:
-
Devise::PasswordsController
- Object
- Devise::PasswordsController
- Spree::UserPasswordsController
- Includes:
- Core::ControllerHelpers
- Defined in:
- app/controllers/spree/user_passwords_controller.rb
Instance Method Summary collapse
-
#create ⇒ Object
Temporary Override until next Devise release (i.e after v1.3.4) line: respond_with resource, :location => new_session_path(resource_name) is generating bad url /session/new.user.
- #edit ⇒ Object
- #new ⇒ Object
- #update ⇒ Object
Instance Method Details
#create ⇒ Object
Temporary Override until next Devise release (i.e after v1.3.4) line:
respond_with resource, :location => new_session_path(resource_name)
is generating bad url /session/new.user
overridden to:
respond_with resource, :location => login_path
21 22 23 24 25 26 27 28 29 30 |
# File 'app/controllers/spree/user_passwords_controller.rb', line 21 def create self.resource = resource_class.send_reset_password_instructions(params[resource_name]) if resource.errors.empty? (:notice, :send_instructions) if respond_with resource, :location => spree.login_path else (resource) { render :new } end end |
#edit ⇒ Object
32 33 34 |
# File 'app/controllers/spree/user_passwords_controller.rb', line 32 def edit super end |
#new ⇒ Object
9 10 11 |
# File 'app/controllers/spree/user_passwords_controller.rb', line 9 def new super end |
#update ⇒ Object
36 37 38 |
# File 'app/controllers/spree/user_passwords_controller.rb', line 36 def update super end |