locale and default_locale may be the same, so uniq the array
This commit is contained in:
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 }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user