Sha256: a0bb9f5a5d88bb206f3ac26abc4f5fd5c848eaa79b1418a4fd61971a35396b09
Contents?: true
Size: 686 Bytes
Versions: 9
Compression:
Stored size: 686 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 Android < Device paginates_per 200 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
9 entries across 9 versions & 6 rubygems