Sha256: e63940fcf960481c3feeb204d4f685dace49127532df75067f5a2631a735216c

Contents?: true

Size: 190 Bytes

Versions: 13

Compression:

Stored size: 190 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

13 entries across 13 versions & 1 rubygems

Version Path
money-rails-1.10.0 spec/dummy/app/models/dummy_product.rb
money-rails-1.9.0 spec/dummy/app/models/dummy_product.rb
money-rails-1.8.0 spec/dummy/app/models/dummy_product.rb
money-rails-1.7.0 spec/dummy/app/models/dummy_product.rb
money-rails-1.6.2 spec/dummy/app/models/dummy_product.rb
money-rails-1.6.1 spec/dummy/app/models/dummy_product.rb
money-rails-1.6.0 spec/dummy/app/models/dummy_product.rb
money-rails-1.5.0 spec/dummy/app/models/dummy_product.rb
money-rails-1.4.1 spec/dummy/app/models/dummy_product.rb
money-rails-1.4.0 spec/dummy/app/models/dummy_product.rb
money-rails-1.3.0 spec/dummy/app/models/dummy_product.rb
money-rails-1.2.0 spec/dummy/app/models/dummy_product.rb
money-rails-1.1.0 spec/dummy/app/models/dummy_product.rb