Class: I18nliner::ControllerScope
- Defined in:
- lib/i18nliner/controller_scope.rb
Instance Attribute Summary
Attributes inherited from Scope
#allow_relative, #context, #remove_whitespace
Instance Method Summary collapse
Methods inherited from Scope
#initialize, #normalize_key, root, #root?
Constructor Details
This class inherits a constructor from I18nliner::Scope
Instance Method Details
#scope ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/i18nliner/controller_scope.rb', line 5 def scope # best guess at current action, ymmv. we only add the action at this # point because the scope already has the controller path # see abstract_controller/translation.rb for reference if context.current_defn "#{super}.#{context.current_defn}" else super end end |