diff options
author | claudiob <claudiob@users.noreply.github.com> | 2017-12-08 07:15:08 -0800 |
---|---|---|
committer | claudiob <claudiob@users.noreply.github.com> | 2017-12-14 22:50:30 -0800 |
commit | 74996cec93adf10e4e12e3f53479c4b3364dbb14 (patch) | |
tree | 01e9bd77f49b98a2ee53045184d61c28c1be8ee5 /railties/lib/rails | |
parent | 597b941930af87a4bfe9d1cdb05578091eb83735 (diff) | |
download | rails-74996cec93adf10e4e12e3f53479c4b3364dbb14.tar.gz rails-74996cec93adf10e4e12e3f53479c4b3364dbb14.tar.bz2 rails-74996cec93adf10e4e12e3f53479c4b3364dbb14.zip |
Don't run rails active_storage:install in new apps
See #31315 for full discussion
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/app_base.rb | 10 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/app/app_generator.rb | 1 |
2 files changed, 0 insertions, 11 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index b9ae24de59..59184020ae 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -456,16 +456,6 @@ module Rails end end - def run_active_storage - unless skip_active_storage? - if bundle_install? - rails_command "active_storage:install", capture: options[:quiet] - else - log("Active Storage installation was skipped. Please run `bin/rails active_storage:install` to install Active Storage files.") - end - end - end - def empty_directory_with_keep_file(destination, config = {}) empty_directory(destination, config) keep_file(destination) diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index bf4570db90..fd9da7803f 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -463,7 +463,6 @@ module Rails public_task :apply_rails_template, :run_bundle public_task :run_webpack, :generate_spring_binstubs - public_task :run_active_storage def run_after_bundle_callbacks @after_bundle_callbacks.each(&:call) |