diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-02-04 19:40:23 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2016-02-04 19:40:23 +0530 |
commit | e0e872f6751ae653b07bd529267b4dcb5b7fca81 (patch) | |
tree | 85ab301b079c6934834bec4ffe8b221f9101874b /railties/lib | |
parent | 8a84f1c047ebb59dec7a7ece9355da9c7b0ae6b7 (diff) | |
download | rails-e0e872f6751ae653b07bd529267b4dcb5b7fca81.tar.gz rails-e0e872f6751ae653b07bd529267b4dcb5b7fca81.tar.bz2 rails-e0e872f6751ae653b07bd529267b4dcb5b7fca81.zip |
Pass api only option to rails rails:update task to update only based on API.
Fixes #23470
Diffstat (limited to 'railties/lib')
-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?) |