Sha256: b2939a55d2c876cb44da263625d0fda8fa71e5c1ddcafc1fc6ff091074730f12

Contents?: true

Size: 401 Bytes

Versions: 5

Compression:

Stored size: 401 Bytes

Contents

if USE_MONGOID
  class Vendor
    include Mongoid::Document

    has_many :products
    field :name,        :type => String
    field :url,         :type => String
    field :active,      :type => Boolean
    field :description, :type => String
    field :created_at,  :type => Time
    field :updated_at,  :type => Time
  end
else
  class Vendor < ActiveRecord::Base
    has_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/vendor.rb
tabulatr-0.4.1 spec/dummy_app/app/models/vendor.rb
tabulatr-0.4.0 spec/dummy_app/app/models/vendor.rb
tabulatr-0.3.0 spec/dummy_app/app/models/vendor.rb
tabulatr-0.2.0 spec/dummy_app/app/models/vendor.rb