Sha256: cd772f515d22c763de524dbd7ccf76ec08fe0a8066b737ee107c6807a004b8df
Contents?: true
Size: 512 Bytes
Versions: 3
Compression:
Stored size: 512 Bytes
Contents
if USE_MONGOID class Product include Mongoid::Document has_and_belongs_to_many :tags belongs_to :vendor field :name, :type => String field :url, :type => String field :active, :type => Boolean field :description, :type => String field :price, :type => Float field :created_at, :type => Time field :updated_at, :type => Time end else class Product < ActiveRecord::Base has_and_belongs_to_many :tags belongs_to :vendor end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tabulatr-0.4.2 | spec/dummy_app/app/models/product.rb |
tabulatr-0.4.1 | spec/dummy_app/app/models/product.rb |
tabulatr-0.4.0 | spec/dummy_app/app/models/product.rb |