aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-09-06 18:11:21 +0200
committerGitHub <noreply@github.com>2016-09-06 18:11:21 +0200
commit1722397f9a63f74bc7ff633895aec7109568a25b (patch)
tree78c05f68cc5bfe6eeed1eea9f9f68c40518903fb /activesupport/lib
parent2e4eb03925ae5854691a4318787e7707358615e8 (diff)
parentfbccae4d190c91aa689defc2fbf25744b369df05 (diff)
downloadrails-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/lib')
-rw-r--r--activesupport/lib/active_support/i18n_railtie.rb17
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