instance method locale

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.1.12

Available in: v3.0.20 v3.1.12

Signature

locale()

Overload locale to return a symbol instead of array.

Source
# File actionpack/lib/action_view/lookup_context.rb, line 165
      def locale
        @details[:locale].first
      end

Defined in actionpack/lib/action_view/lookup_context.rb line 165 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::LookupContext::Details

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close