Module: Countrizable::Interpolation
Instance Method Summary collapse
Instance Method Details
#interpolate(name, model, args) ⇒ Object
3 4 5 6 |
# File 'lib/countrizable/interpolation.rb', line 3 def interpolate(name, model, args) country_value = model.read_attribute(name, {:country_code => country_code_from(args)}) try_interpolation country_value, interpolation_args_from(args) end |