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 /railties | |
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 'railties')
-rw-r--r-- | railties/lib/rails/generators/app_base.rb | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index 7d061ed27c..d76acbdafc 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -162,14 +162,15 @@ module Rails def set_default_accessors! self.destination_root = File.expand_path(app_path, destination_root) - self.rails_template = case options[:template] - when /^https?:\/\// - options[:template] - when String - File.expand_path(options[:template], Dir.pwd) + self.rails_template = \ + case options[:template] + when /^https?:\/\// + options[:template] + when String + File.expand_path(options[:template], Dir.pwd) else - options[:template] - end + options[:template] + end end def database_gemfile_entry |