5 6 7 8 9
# File 'lib/mongo_mapper/plugins/timestamps.rb', line 5 def timestamps! key :created_at, Time key :updated_at, Time class_eval { before_save :update_timestamps } end