lib/ixtlan/optimistic/stale_check.rb in ixtlan-optimistic-0.2.3 vs lib/ixtlan/optimistic/stale_check.rb in ixtlan-optimistic-0.2.4

- old
+ new

@@ -37,10 +37,10 @@ updated_at = updated_at.to_datetime end updated_at = updated_at.new_offset(0) if updated_at != result.updated_at && updated_at.strftime("%Y:%m:%d %H:%M:%S") != result.updated_at.strftime("%Y:%m:%d %H:%M:%S") - raise ObjectStaleException.new "#{result.inspect} is newer than the given updated at #{updated_at}." + raise ObjectStaleException.new "#{result.model} with key [#{result.id}] was updated at #{result.updated_at} is newer than the given one which was updated at #{updated_at}." end result end end end