Sha256: 80c5f58871fbb988d9a90634f099dc7cf91c46da82742d878f4d296cdb0890df

Contents?: true

Size: 189 Bytes

Versions: 5

Compression:

Stored size: 189 Bytes

Contents

class Category
  include Mongoid::Document
  include Mongoid::Attributes::Dynamic if ::Mongoid::VERSION >= '4'

  field :name, localize: true
  field :description

  has_many :products
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mongoid_search-0.4.0 spec/models/category.rb
mongoid_search-0.3.6 spec/models/category.rb
mongoid_search-0.3.5 spec/models/category.rb
mongoid_search-0.3.4 spec/models/category.rb
mongoid_search-0.3.3 spec/models/category.rb