app/controllers/devise/passwords_controller.rb in devise-3.2.3 vs app/controllers/devise/passwords_controller.rb in devise-3.2.4

- old
+ new

@@ -1,9 +1,9 @@ class Devise::PasswordsController < DeviseController prepend_before_filter :require_no_authentication # Render the #edit only if coming from a reset password email link - append_before_filter :assert_reset_token_passed, :only => :edit + append_before_filter :assert_reset_token_passed, only: :edit # GET /resource/password/new def new self.resource = resource_class.new end @@ -12,11 +12,11 @@ def create self.resource = resource_class.send_reset_password_instructions(resource_params) yield resource if block_given? if successfully_sent?(resource) - respond_with({}, :location => after_sending_reset_password_instructions_path_for(resource_name)) + respond_with({}, location: after_sending_reset_password_instructions_path_for(resource_name)) else respond_with(resource) end end @@ -34,10 +34,10 @@ if resource.errors.empty? resource.unlock_access! if unlockable?(resource) flash_message = resource.active_for_authentication? ? :updated : :updated_not_active set_flash_message(:notice, flash_message) if is_flashing_format? sign_in(resource_name, resource) - respond_with resource, :location => after_resetting_password_path_for(resource) + respond_with resource, location: after_resetting_password_path_for(resource) else respond_with resource end end