instance method
locale=
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
locale=(locale)
Sets the current locale pseudo-globally, i.e. in the Thread.current hash.
Parameters
-
localereq
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/config.rb, line 10
def locale=(locale)
@locale = locale.to_sym rescue nil
end
Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/config.rb line 10
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in I18n::Config