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

- old
+ new

@@ -10,11 +10,11 @@ def create self.resource = resource_class.send_unlock_instructions(resource_params) yield resource if block_given? if successfully_sent?(resource) - respond_with({}, :location => after_sending_unlock_instructions_path_for(resource)) + respond_with({}, location: after_sending_unlock_instructions_path_for(resource)) else respond_with(resource) end end @@ -25,10 +25,10 @@ if resource.errors.empty? set_flash_message :notice, :unlocked if is_flashing_format? respond_with_navigational(resource){ redirect_to after_unlock_path_for(resource) } else - respond_with_navigational(resource.errors, :status => :unprocessable_entity){ render :new } + respond_with_navigational(resource.errors, status: :unprocessable_entity){ render :new } end end protected