diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-02-23 00:04:47 +0200 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-02-23 01:23:59 +0200 |
commit | dcdb8e72cc2c4e57334e0de94f516e53ff028de8 (patch) | |
tree | 9593e5e59f676ae1d1baa05e79958487e712e0bd /railties/lib | |
parent | f85c77bef9efd8ffa97a59e87320e55e486e30c2 (diff) | |
download | rails-dcdb8e72cc2c4e57334e0de94f516e53ff028de8.tar.gz rails-dcdb8e72cc2c4e57334e0de94f516e53ff028de8.tar.bz2 rails-dcdb8e72cc2c4e57334e0de94f516e53ff028de8.zip |
Comment `require "active_storage/engine"` in `bin/rails` of plugin if `--skip-active-storage`
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/plugin/templates/bin/rails.tt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/plugin/templates/bin/rails.tt b/railties/lib/rails/generators/rails/plugin/templates/bin/rails.tt index b3264509fc..ee8e469da2 100644 --- a/railties/lib/rails/generators/rails/plugin/templates/bin/rails.tt +++ b/railties/lib/rails/generators/rails/plugin/templates/bin/rails.tt @@ -19,10 +19,10 @@ require "rails" require "active_model/railtie" require "active_job/railtie" <%= comment_if :skip_active_record %>require "active_record/railtie" +<%= comment_if :skip_active_storage %>require "active_storage/engine" require "action_controller/railtie" <%= comment_if :skip_action_mailer %>require "action_mailer/railtie" require "action_view/railtie" -require "active_storage/engine" <%= comment_if :skip_action_cable %>require "action_cable/engine" <%= comment_if :skip_sprockets %>require "sprockets/railtie" <%= comment_if :skip_test %>require "rails/test_unit/railtie" |