lib/mongo_mapper/plugins/userstamps.rb in mongo_mapper-0.8.6 vs lib/mongo_mapper/plugins/userstamps.rb in mongo_mapper-0.9.0
- old
+ new
@@ -1,8 +1,10 @@
# encoding: UTF-8
module MongoMapper
module Plugins
module Userstamps
+ extend ActiveSupport::Concern
+
module ClassMethods
def userstamps!
key :creator_id, ObjectId
key :updater_id, ObjectId
belongs_to :creator, :class_name => 'User'
\ No newline at end of file