Sha256: e88dbc073b5933162518bcffb9768162005ef688bcda5dc65d25c31e55ce9a43

Contents?: true

Size: 327 Bytes

Versions: 3

Compression:

Stored size: 327 Bytes

Contents

class Fruit
  include MongoMapper::Document

  key :species, String
  key :average_diameter, Integer

  belongs_to :tree
end

class Tree
  include MongoMapper::Document

  key :size

  attr_protected :size
  many :fruits
end

MongoMapper.connection = Mongo::Connection.new('localhost')
MongoMapper.database = 'blueprints_test'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blueprints-1.0.1 spec/support/mongo_mapper/initializer.rb
blueprints-1.0.0 spec/support/mongo_mapper/initializer.rb
blueprints-0.9.0 spec/support/mongo_mapper/initializer.rb