Module: CustomFields::Types::Money::Field

Extended by:
ActiveSupport::Concern
Defined in:
lib/custom_fields/types/money.rb

Instance Method Summary collapse

Instance Method Details

#money_as_json(options = {}) ⇒ Object



34
35
36
# File 'lib/custom_fields/types/money.rb', line 34

def money_as_json(options = {})
  money_to_recipe
end

#money_to_recipeObject

included



29
30
31
32
# File 'lib/custom_fields/types/money.rb', line 29

def money_to_recipe
  { 'default_currency' => self.default_currency,
    'allow_currency_from_symbol' => self.allow_currency_from_symbol }
end