Module: I18nliner::Extensions::Controller

Includes:
Inferpolation
Defined in:
lib/i18nliner/extensions/controller.rb

Instance Method Summary collapse

Methods included from Inferpolation

#inferpolate, #inferpolate_value!

Instance Method Details

#i18nliner_scopeObject


10
# File 'lib/i18nliner/extensions/controller.rb', line 10

def i18nliner_scope; end

#translate(*args) ⇒ Object Also known as: t, t!, translate!


12
13
14
15
16
17
# File 'lib/i18nliner/extensions/controller.rb', line 12

def translate(*args)
  key, options = CallHelpers.infer_arguments(args)
  options = inferpolate(options) if I18nliner.infer_interpolation_values
  options[:i18nliner_scope] = i18nliner_scope
  super(key, options)
end