Sha256: 21c9ed2fd0708c0feed0855fee1aee3a22d9167a043180bcaee456da9cfbeda1
Contents?: true
Size: 241 Bytes
Versions: 3
Compression:
Stored size: 241 Bytes
Contents
class DummyProduct < ActiveRecord::Base attr_accessible :currency, :price_cents, :price # Use as model level currency register_currency :gbp # Use money-rails macros monetize :price_cents, :with_model_currency => :currency end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
money-rails-0.11.0 | spec/dummy/app/models/dummy_product.rb |
money-rails-0.10.0 | spec/dummy/app/models/dummy_product.rb |
money-rails-0.9.0 | spec/dummy/app/models/dummy_product.rb |