Sha256: 22a6315ed9759ff3b948226d22a4414405a2c48bcb023ffafa69567e95743788

Contents?: true

Size: 331 Bytes

Versions: 3

Compression:

Stored size: 331 Bytes

Contents

class Item < ActiveRecord::Base
  has_counterfeit :price
  has_counterfeit :balance, :currency => :thb
  has_money :another_money_attr
  has_counterfeit :money,   :currency => 'EUR',
                            :currency_attribute => :custom_money_currency,
                            :amount_attribute => :custom_money_amount
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
counterfeit-0.0.3 spec/models.rb
counterfeit-0.0.2 spec/models.rb
counterfeit-0.0.1 spec/models.rb