mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
locale and default_locale may be the same, so uniq the array
This commit is contained in:
@@ -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 }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user