class method
self.locale=
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3Signature
self.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.0.1/i18n.rb, line 44
def locale=(locale)
Thread.current[:locale] = locale
end
Defined in activesupport/lib/active_support/vendor/i18n-0.0.1/i18n.rb line 44
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in I18n