Module: AzaharaSchemaCurrency::AssociationAttributePatch
- Defined in:
- lib/azahara_schema_currency/association_attribute_patch.rb
Instance Method Summary collapse
Instance Method Details
#currency_code(entity) ⇒ Object
8 9 10 |
# File 'lib/azahara_schema_currency/association_attribute_patch.rb', line 8 def currency_code(entity) entity.try(currency_code_col) end |
#currency_code_col ⇒ Object
4 5 6 |
# File 'lib/azahara_schema_currency/association_attribute_patch.rb', line 4 def currency_code_col association.name.to_s+'-'+attribute.try(:currency_code_col).to_s end |