Skip to content

Commit a1765e3

Browse files
committed
hardtoseetheloggeris
1 parent 1d4719b commit a1765e3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

example_app_generator/generate_app.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,4 @@
7575
end
7676
create_file 'app/assets/stylesheets/application.css'
7777
end
78-
79-
if Rails::VERSION::STRING < '7.1'
80-
prepend_to_file "config/application.rb", "require 'logger'\n"
81-
end
8278
end

example_app_generator/generate_stuff.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ def using_source_path(path)
145145
copy_file 'spec/__verify_fixture_load_order_spec.rb'
146146
end
147147

148+
149+
if Rails::VERSION::STRING < '7.1'
150+
prepend_to_file "spec/spec_helper.rb", "require 'logger'\n"
151+
end
152+
148153
gsub_file 'spec/spec_helper.rb', /^=(begin|end)/, ''
149154
gsub_file 'spec/rails_helper.rb', /^# Rails\.root\.glob\('spec.support/, "Rails.root.glob('spec/support"
150155

0 commit comments

Comments
 (0)