Sha256: 3eb018565386f232b31d67e24a47a3afde8988438da42b33bb836c6029578929

Contents?: true

Size: 325 Bytes

Versions: 13

Compression:

Stored size: 325 Bytes

Contents

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

13 entries across 13 versions & 5 rubygems

Version Path
pwnash-mongo_mapper-0.7.5 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-0.7.6 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-0.7.5 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper_ign-0.7.4 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-0.7.4 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-0.7.3 lib/mongo_mapper/plugins/userstamps.rb
numon-0.0.1 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-0.7.2 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-0.7.1 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-unstable-2010.3.8 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-unstable-2010.3.5 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-unstable-2010.3.4 lib/mongo_mapper/plugins/userstamps.rb
mongo_mapper-unstable-2010.3.3 lib/mongo_mapper/plugins/userstamps.rb