From ab802e72dc08a44e1a9fe767635dfd184274caad Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 13 Dec 2011 11:28:30 -0800 Subject: locale and default_locale may be the same, so uniq the array --- actionpack/lib/action_view/lookup_context.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_view') diff --git a/actionpack/lib/action_view/lookup_context.rb b/actionpack/lib/action_view/lookup_context.rb index 089d3b1e57..95478b9af6 100644 --- a/actionpack/lib/action_view/lookup_context.rb +++ b/actionpack/lib/action_view/lookup_context.rb @@ -44,7 +44,7 @@ module ActionView module Accessors #:nodoc: end - register_detail(:locale) { [I18n.locale, I18n.default_locale] } + register_detail(:locale) { [I18n.locale, I18n.default_locale].uniq } register_detail(:formats) { Mime::SET.symbols } register_detail(:handlers){ Template::Handlers.extensions } -- cgit v1.2.3