aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib/active_resource/validations.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activeresource/lib/active_resource/validations.rb')
-rw-r--r--activeresource/lib/active_resource/validations.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/activeresource/lib/active_resource/validations.rb b/activeresource/lib/active_resource/validations.rb
index 3011ba3295..c45655d1ea 100644
--- a/activeresource/lib/active_resource/validations.rb
+++ b/activeresource/lib/active_resource/validations.rb
@@ -109,9 +109,10 @@ module ActiveResource
def save_with_validation
save_without_validation
+ true
rescue ResourceInvalid => error
errors.from_xml(error.response.body)
- return false
+ false
end
def valid?
@@ -123,4 +124,4 @@ module ActiveResource
@errors ||= Errors.new(self)
end
end
-end \ No newline at end of file
+end