16 17 18 19 20
# File 'lib/mongo_mapper/plugins/timestamps.rb', line 16 def update_timestamps now = Time.now.utc self[:created_at] = now if !persisted? && !created_at? self[:updated_at] = now end