Returning empty json and empty xml

This commit is contained in:
Rodrigo Flores
2011-06-21 18:45:22 -03:00
parent b37055fa47
commit 41bb96be5d

View File

@@ -14,7 +14,7 @@ class Devise::PasswordsController < ApplicationController
if successful_and_sane?(resource)
set_flash_message(:notice, :send_instructions) if is_navigational_format?
respond_with resource, :location => new_session_path(resource_name)
respond_with({}, :location => new_session_path(resource_name))
else
respond_with_navigational(resource){ render_with_scope :new }
end