I want to be able to set the currency on the model dynamically using the currency as set by the model's parent.
Like so:
class Event < ActiveRecord::Base
belongs_to :edition
monetize :price_cents, :with_currency => proc { |event| event.edition.currency }
event.edition.currency returns a symbol from the model's parent... e.g. :gbp
But it doesn't work. The default convention is:
monetize :bonus_cents, :with_currency => :gbp
Which works fine... any ideas?