Sha256: 4a774a8449737c4b41fa5df8a8f29610ce5b9f85ac0ef1a24f021d90d1799f88

Contents?: true

Size: 296 Bytes

Versions: 5

Compression:

Stored size: 296 Bytes

Contents

if USE_MONGOID
  class Tag
    include Mongoid::Document
    has_and_belongs_to_many :products
    field :title, :type => String
    field :created_at,  :type => Time
    field :updated_at,  :type => Time
  end
else
  class Tag < ActiveRecord::Base
    has_and_belongs_to_many :products
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tabulatr-0.4.2 spec/dummy_app/app/models/tag.rb
tabulatr-0.4.1 spec/dummy_app/app/models/tag.rb
tabulatr-0.4.0 spec/dummy_app/app/models/tag.rb
tabulatr-0.3.0 spec/dummy_app/app/models/tag.rb
tabulatr-0.2.0 spec/dummy_app/app/models/tag.rb