diff options
author | Koichi ITO <koic.ito@gmail.com> | 2017-08-12 20:31:46 +0900 |
---|---|---|
committer | Koichi ITO <koic.ito@gmail.com> | 2017-08-16 17:55:25 +0900 |
commit | 7c260ae20170159f85d8b7ded1209f12653934fc (patch) | |
tree | 7a47c50110652ed74e5984e59d50699e20b64f30 /railties/lib/rails | |
parent | 11fd246d8f6406aa5165ebf45ca8f17c67716f7e (diff) | |
download | rails-7c260ae20170159f85d8b7ded1209f12653934fc.tar.gz rails-7c260ae20170159f85d8b7ded1209f12653934fc.tar.bz2 rails-7c260ae20170159f85d8b7ded1209f12653934fc.zip |
Fix RuboCop offenses
And enable `context_dependent` of Style/BracesAroundHashParameters cop.
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/engine/updater.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/tasks/framework.rake | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/engine/updater.rb b/railties/lib/rails/engine/updater.rb index 2e0aef8aa7..21a0fc5562 100644 --- a/railties/lib/rails/engine/updater.rb +++ b/railties/lib/rails/engine/updater.rb @@ -9,7 +9,7 @@ module Rails class << self def generator @generator ||= Rails::Generators::PluginGenerator.new ["plugin"], - { engine: true }, destination_root: ENGINE_ROOT + { engine: true }, { destination_root: ENGINE_ROOT } end def run(action) diff --git a/railties/lib/rails/tasks/framework.rake b/railties/lib/rails/tasks/framework.rake index 0f578fe270..8931aabcda 100644 --- a/railties/lib/rails/tasks/framework.rake +++ b/railties/lib/rails/tasks/framework.rake @@ -11,7 +11,7 @@ namespace :app do template = File.expand_path(template) if template !~ %r{\A[A-Za-z][A-Za-z0-9+\-\.]*://} require_relative "../generators" require_relative "../generators/rails/app/app_generator" - generator = Rails::Generators::AppGenerator.new [Rails.root], {}, destination_root: Rails.root + generator = Rails::Generators::AppGenerator.new [Rails.root], {}, { destination_root: Rails.root } generator.apply template, verbose: false end |