aboutsummaryrefslogtreecommitdiff
path: root/lib/dm-validations-with-empty-errors-hack.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-11-27 11:51:47 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-11-27 11:51:47 +0000
commit11999e9c25d237bae2b6eb51ed20e63b2db9c2c7 (patch)
tree5aeb8c9ab561a6e076ff63aeb5f3fdc4c9714b84 /lib/dm-validations-with-empty-errors-hack.rb
parent791abff5faabfc14568cdcaf0be553eb05947372 (diff)
Be more picky when setting updated_at/created_at timestamps.
Diffstat (limited to 'lib/dm-validations-with-empty-errors-hack.rb')
-rw-r--r--lib/dm-validations-with-empty-errors-hack.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/dm-validations-with-empty-errors-hack.rb b/lib/dm-validations-with-empty-errors-hack.rb
index db06d42..3916451 100644
--- a/lib/dm-validations-with-empty-errors-hack.rb
+++ b/lib/dm-validations-with-empty-errors-hack.rb
@@ -17,6 +17,7 @@ module DataMapper
logger.warn "Forced to save #{self.inspect} without validations due to #{self.errors.inspect}."
super
else
+ logger.warn "Failed to save #{self.inspect} with validations due to #{self.errors.inspect}."
false
end
else