Permalink
Browse files

Return false on #save if the response is not OK

  • Loading branch information...
1 parent 8f9cadd commit f55ad16fde3e0c55fb96b1510f9dbb321bc26901 @remiprev committed Mar 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/her/model/orm.rb
View
@@ -153,7 +153,7 @@ def save
self.response_errors = parsed_data[:errors]
self.changed_attributes.clear if self.changed_attributes.present?
- return false if self.response_errors.any?
+ return false if !response.success? || self.response_errors.any?
end
end
end

0 comments on commit f55ad16

Please sign in to comment.