Sha256: ebd17bf5dac6ff01e9867f149262a215405d2673cb1d7d5027fffb068280a243
Contents?: true
Size: 638 Bytes
Versions: 1
Compression:
Stored size: 638 Bytes
Contents
class User include ::Mongoid::Document if Mongoid::VERSION >= '4.0.0' include Mongoid::Attributes::Dynamic end field :name, :type => String field :age, :type => Integer end class User::Address include ::Mongoid::Document end class Product include ::Mongoid::Document end class Device < Product paginates_per 100 end class MongoMongoidExtensionDeveloper include ::Mongoid::Document field :salary, :type => Integer embeds_many :frameworks end class Framework include ::Mongoid::Document field :name, :type => String field :language, :type => String embedded_in :mongo_mongoid_extension_developer end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kaminari-0.16.2 | spec/fake_app/mongoid/models.rb |