Sha256: c40e1d128a40ab6221d33b7986ea563e516bfe3c3570e415a7c66eb1abca8128

Contents?: true

Size: 187 Bytes

Versions: 9

Compression:

Stored size: 187 Bytes

Contents

class DummyProduct < ActiveRecord::Base
  # Use  as model level currency
  register_currency :gbp

  # Use money-rails macros
  monetize :price_cents, with_model_currency: :currency
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
money-rails-1.15.0 spec/dummy/app/models/dummy_product.rb
money-rails-1.14.0 spec/dummy/app/models/dummy_product.rb
money-rails-1.13.4 spec/dummy/app/models/dummy_product.rb
money-rails-1.13.3 spec/dummy/app/models/dummy_product.rb
money-rails-1.13.2 spec/dummy/app/models/dummy_product.rb
money-rails-1.13.1 spec/dummy/app/models/dummy_product.rb
money-rails-1.13.0 spec/dummy/app/models/dummy_product.rb
money-rails-1.12.0 spec/dummy/app/models/dummy_product.rb
money-rails-1.11.0 spec/dummy/app/models/dummy_product.rb