Module: LocaleSetter::Rails
- Included in:
- LocaleSetter
- Defined in:
- lib/locale_setter/rails.rb
Instance Attribute Summary collapse
-
#i18n ⇒ Object
Returns the value of attribute i18n.
Instance Method Summary collapse
Instance Attribute Details
#i18n ⇒ Object
Returns the value of attribute i18n.
3 4 5 |
# File 'lib/locale_setter/rails.rb', line 3 def i18n @i18n end |
Instance Method Details
#default_url_options(options = {}) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/locale_setter/rails.rb', line 5 def ( = {}) if i18n.locale == i18n.default_locale else {:locale => i18n.locale}.merge() end end |