Class: Locomotive::PasswordsController
- Inherits:
-
Devise::PasswordsController
- Object
- Devise::PasswordsController
- Locomotive::PasswordsController
- Includes:
- Concerns::RedirectToMainHostController, Concerns::SslController, Concerns::WithinSiteController
- Defined in:
- app/controllers/locomotive/passwords_controller.rb
Instance Method Summary collapse
Instance Method Details
#update ⇒ Object
16 17 18 19 20 21 22 |
# File 'app/controllers/locomotive/passwords_controller.rb', line 16 def update super do |resource| if params[:locomotive_account].try(:[], 'password').blank? resource.errors.add(:password, :blank) end end end |