Permalink
Browse files

locale and default_locale may be the same, so uniq the array

  • Loading branch information...
1 parent 9d87a67 commit ab802e72dc08a44e1a9fe767635dfd184274caad @tenderlove tenderlove committed Dec 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/lookup_context.rb
View
2 actionpack/lib/action_view/lookup_context.rb
@@ -44,7 +44,7 @@ def initialize_details(details)
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 }

0 comments on commit ab802e7

Please sign in to comment.