Sha256: 56a5639148a923149e128a08c53ad509211644a539a3f8a5699b88c559baed7f

Contents?: true

Size: 398 Bytes

Versions: 9

Compression:

Stored size: 398 Bytes

Contents

require_relative "../lib/mongoid-dsl"
require_relative "helper/connection"

class TestD

  include Mongoid::Document
  include Mongoid::Timestamps

  # for manual include but by default after require the module it will happen on the fly!
  include Mongoid::DSL

  store_in :collection => self.mongoid_name

  field :test,
        :type => String,
        :desc => "description for this field"

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mongoid-dsl-1.4.1 examples/include.rb
mongoid-dsl-1.4.0 examples/include.rb
mongoid-dsl-1.3.1 examples/include.rb
mongoid-dsl-1.3.0 examples/include.rb
mongoid-dsl-1.2.0 examples/include.rb
mongoid-dsl-1.1.0 examples/include.rb
mongoid-dsl-1.0.5 examples/include.rb
mongoid-dsl-1.0.3 examples/include.rb
mongoid-dsl-1.0.2 examples/include.rb