Module: Globalize::Interpolation

Extended by:
Interpolation
Included in:
Interpolation
Defined in:
lib/globalize/interpolation.rb

Instance Method Summary collapse

Instance Method Details

#interpolate(name, model, args) ⇒ Object


3
4
5
6
# File 'lib/globalize/interpolation.rb', line 3

def interpolate(name, model, args)
  translation = model.read_attribute(name, {:locale => locale_from(args)})
  try_interpolation translation, interpolation_args_from(args)
end