Update to Rails 2.3.8
This commit is contained in:
parent
6677b46cb4
commit
f0635301aa
429 changed files with 17683 additions and 4047 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue