diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-02-04 12:12:53 -0200 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-02-04 12:12:53 -0200 |
commit | 83147f1ff3054bcab4a05967890539754f85f38a (patch) | |
tree | 4c2dbf0876332355a06bb53501e357f1db96344b /railties | |
parent | f2306d05d8b4e77741145be5ce63a1270655fed2 (diff) | |
parent | e0e872f6751ae653b07bd529267b4dcb5b7fca81 (diff) | |
download | rails-83147f1ff3054bcab4a05967890539754f85f38a.tar.gz rails-83147f1ff3054bcab4a05967890539754f85f38a.tar.bz2 rails-83147f1ff3054bcab4a05967890539754f85f38a.zip |
Merge pull request #23478 from vipulnsward/23470-pass-api-in-update-generator
Pass api only option to rails rails:update task to update only based on api Apps
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/tasks/framework.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/tasks/framework.rake b/railties/lib/rails/tasks/framework.rake index 904b9d9ad6..7601836809 100644 --- a/railties/lib/rails/tasks/framework.rake +++ b/railties/lib/rails/tasks/framework.rake @@ -45,7 +45,7 @@ namespace :rails do @app_generator ||= begin require 'rails/generators' require 'rails/generators/rails/app/app_generator' - gen = Rails::Generators::AppGenerator.new ["rails"], { with_dispatchers: true }, + gen = Rails::Generators::AppGenerator.new ["rails"], { with_dispatchers: true, api: !!Rails.application.config.api_only }, destination_root: Rails.root File.exist?(Rails.root.join("config", "application.rb")) ? gen.send(:app_const) : gen.send(:valid_const?) |