aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-08-08 17:15:53 -0400
committerGitHub <noreply@github.com>2017-08-08 17:15:53 -0400
commit507f3efe1f03488fd19b314f89dfafa5626d6eb5 (patch)
treee53aad3142840cd87c601c3629985a2f018a0062
parentb28bba92a9f4552cc42e40ed48f0df86214276f3 (diff)
parent8967170164186f2408776ff5b193878f1c82a541 (diff)
downloadrails-507f3efe1f03488fd19b314f89dfafa5626d6eb5.tar.gz
rails-507f3efe1f03488fd19b314f89dfafa5626d6eb5.tar.bz2
rails-507f3efe1f03488fd19b314f89dfafa5626d6eb5.zip
Merge pull request #30123 from yhirano55/fix_dummy_app_configuration
Fix dummy_app configuration
-rw-r--r--railties/lib/rails/generators/rails/plugin/templates/rails/application.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/railties/lib/rails/generators/rails/plugin/templates/rails/application.rb b/railties/lib/rails/generators/rails/plugin/templates/rails/application.rb
index 5e0cfd6c21..47b56ae3df 100644
--- a/railties/lib/rails/generators/rails/plugin/templates/rails/application.rb
+++ b/railties/lib/rails/generators/rails/plugin/templates/rails/application.rb
@@ -3,16 +3,18 @@ require_relative 'boot'
<% if include_all_railties? -%>
require 'rails/all'
<% else -%>
+require "rails"
# Pick the frameworks you want:
+require "active_model/railtie"
+require "active_job/railtie"
<%= comment_if :skip_active_record %>require "active_record/railtie"
require "action_controller/railtie"
-require "action_view/railtie"
<%= comment_if :skip_action_mailer %>require "action_mailer/railtie"
-require "active_job/railtie"
+require "action_view/railtie"
require "active_storage/engine"
<%= comment_if :skip_action_cable %>require "action_cable/engine"
-<%= comment_if :skip_test %>require "rails/test_unit/railtie"
<%= comment_if :skip_sprockets %>require "sprockets/railtie"
+<%= comment_if :skip_test %>require "rails/test_unit/railtie"
<% end -%>
Bundler.require(*Rails.groups)