diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-03-09 15:25:16 -0300 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-03-09 15:25:16 -0300 |
commit | 4b43651884309c0f5be4dbdd11ea4d16fb880c30 (patch) | |
tree | b1b26e547133360d767cf35d9fc1e43236b25c7b /railties/lib/rails/tasks | |
parent | 0934b9e7cf904230b261029a60fb264b75001a37 (diff) | |
parent | 486bffa6cec67050ba600c6a606f2183750a1fd3 (diff) | |
download | rails-4b43651884309c0f5be4dbdd11ea4d16fb880c30.tar.gz rails-4b43651884309c0f5be4dbdd11ea4d16fb880c30.tar.bz2 rails-4b43651884309c0f5be4dbdd11ea4d16fb880c30.zip |
Merge pull request #23940 from prathamesh-sonpatki/rm-with-dispatchers
Remove passing `with_dispatchers` to AppGenerator
Diffstat (limited to 'railties/lib/rails/tasks')
-rw-r--r-- | railties/lib/rails/tasks/framework.rake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/railties/lib/rails/tasks/framework.rake b/railties/lib/rails/tasks/framework.rake index bf25b74627..61fb8311a5 100644 --- a/railties/lib/rails/tasks/framework.rake +++ b/railties/lib/rails/tasks/framework.rake @@ -47,8 +47,9 @@ namespace :app do @app_generator ||= begin require 'rails/generators' require 'rails/generators/rails/app/app_generator' - gen = Rails::Generators::AppGenerator.new ["rails"], { with_dispatchers: true, api: !!Rails.application.config.api_only }, - destination_root: Rails.root + gen = Rails::Generators::AppGenerator.new ["rails"], + { 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?) gen |