Sha256: 9d14bd7aa5841be4598cdcab1291fab35cde966e18b3e132459b018ca80e2347

Contents?: true

Size: 203 Bytes

Versions: 8

Compression:

Stored size: 203 Bytes

Contents

# class for testing attribute casting
#
class Product < ActiveRecord::Base
  has_eav :through => :product_attribute do
    eav_attribute :price, Float
    eav_attribute :cost_price, BigDecimal
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
has_eav-1.2.0 test/app/models/product.rb
has_eav-1.1.5 test/app/models/product.rb
has_eav-1.1.4 test/app/models/product.rb
has_eav-1.1.2 test/app/models/product.rb
has_eav-1.1.1 test/app/models/product.rb
has_eav-1.1.0 test/app/models/product.rb
has_eav-1.0.1 test/app/models/product.rb
has_eav-1.0.0 test/app/models/product.rb