Update to Rails 2.3.8

This commit is contained in:
Jacques Distler 2010-05-25 12:45:45 -05:00
parent 6677b46cb4
commit f0635301aa
429 changed files with 17683 additions and 4047 deletions

View file

@ -259,10 +259,10 @@ module ActiveResource
save_without_validation
true
rescue ResourceInvalid => error
case error.response['Content-Type']
when /xml/
case self.class.format
when ActiveResource::Formats[:xml]
errors.from_xml(error.response.body)
when /json/
when ActiveResource::Formats[:json]
errors.from_json(error.response.body)
end
false