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

This commit is contained in:
Aaron Patterson 2011-12-13 11:28:30 -08:00
parent 9d87a67590
commit ab802e72dc

@ -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 }