lib/mongoid/timestamps/updated.rb in mongoid-2.4.3 vs lib/mongoid/timestamps/updated.rb in mongoid-2.4.4
- old
+ new
@@ -5,10 +5,10 @@
# timestamp.
module Updated
extend ActiveSupport::Concern
included do
- field :updated_at, :type => Time, :versioned => false
+ field :updated_at, :type => Time
set_callback :save, :before, :set_updated_at, :if => :able_to_set_updated_at?
end
# Update the updated_at field on the Document to the current time.
# This is only called on create and on save.