diff options
author | Xavier Noria <fxn@hashref.com> | 2016-09-06 18:11:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-06 18:11:21 +0200 |
commit | 1722397f9a63f74bc7ff633895aec7109568a25b (patch) | |
tree | 78c05f68cc5bfe6eeed1eea9f9f68c40518903fb /activesupport | |
parent | 2e4eb03925ae5854691a4318787e7707358615e8 (diff) | |
parent | fbccae4d190c91aa689defc2fbf25744b369df05 (diff) | |
download | rails-1722397f9a63f74bc7ff633895aec7109568a25b.tar.gz rails-1722397f9a63f74bc7ff633895aec7109568a25b.tar.bz2 rails-1722397f9a63f74bc7ff633895aec7109568a25b.zip |
Merge pull request #26405 from alexcameron89/case_statement_formatting
Fix Remaining Case-In-Assignment Statement Formatting
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/i18n_railtie.rb | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/activesupport/lib/active_support/i18n_railtie.rb b/activesupport/lib/active_support/i18n_railtie.rb index 4749147ef4..08c9ef8f02 100644 --- a/activesupport/lib/active_support/i18n_railtie.rb +++ b/activesupport/lib/active_support/i18n_railtie.rb @@ -83,14 +83,15 @@ module I18n def self.init_fallbacks(fallbacks) include_fallbacks_module - args = case fallbacks - when ActiveSupport::OrderedOptions - [*(fallbacks[:defaults] || []) << fallbacks[:map]].compact - when Hash, Array - Array.wrap(fallbacks) - else # TrueClass - [] - end + args = \ + case fallbacks + when ActiveSupport::OrderedOptions + [*(fallbacks[:defaults] || []) << fallbacks[:map]].compact + when Hash, Array + Array.wrap(fallbacks) + else # TrueClass + [] + end I18n.fallbacks = I18n::Locale::Fallbacks.new(*args) end |