Sha256: 5e0a6142890426d360ad04af3730a46b97a527911b58e80a39193206f8e230b9

Contents?: true

Size: 343 Bytes

Versions: 63

Compression:

Stored size: 343 Bytes

Contents

# encoding: UTF-8
module MongoMapper
  module Plugins
    module Userstamps
      module ClassMethods
        def userstamps!
          key :creator_id, ObjectId
          key :updater_id, ObjectId
          belongs_to :creator, :class_name => 'User'
          belongs_to :updater, :class_name => 'User'
        end
      end
    end
  end
end

Version data entries

63 entries across 63 versions & 9 rubygems

Version Path
mongo_mapper-unstable-2010.07.15 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-unstable-2010.07.14 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-unstable-2010.07.13 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-unstable-2010.07.12 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-unstable-2010.07.09 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-unstable-2010.07.08 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-unstable-2010.07.07 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-unstable-2010.07.06 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-unstable-2010.07.05 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-unstable-2010.07.02 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-unstable-2010.07.01 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-unstable-2010.06.30 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-unstable-2010.06.29 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-unstable-2010.06.28 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-unstable-2010.06.25 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-unstable-2010.06.24 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper_ign-0.7.7 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-unstable-2010.06.23 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-0.8.2 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-0.8.1 lib/mongo_mapper/plugins/userstamps.rb