File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
lib/rails/generators/rails/app/templates/config/environments Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ Rails.application.configure do
63
63
# Highlight code that triggered database queries in logs.
64
64
config.active_record.verbose_query_logs = true
65
65
66
+ <%- end -%>
67
+ <%- unless options[:skip_active_job] -%>
66
68
# Highlight code that enqueued background job in logs.
67
69
config.active_job.verbose_enqueue_logs = true
68
70
Original file line number Diff line number Diff line change @@ -726,6 +726,16 @@ def test_skip_active_record_option
726
726
end
727
727
end
728
728
729
+ def test_skip_active_job_option
730
+ run_generator [ destination_root , "--skip-active-job" ]
731
+
732
+ [ "production" , "development" , "test" ] . each do |env |
733
+ assert_file "config/environments/#{ env } .rb" do |content |
734
+ assert_no_match ( /active_job/ , content )
735
+ end
736
+ end
737
+ end
738
+
729
739
def test_skip_javascript_option
730
740
generator ( [ destination_root ] , skip_javascript : true )
731
741
You can’t perform that action at this time.
0 commit comments