Skip to content

Commit 0c54f93

Browse files
authored
Merge pull request #2672 from rspec/fix-rails-edge-warning
Fix Rails edge deprecation warning
2 parents 1873102 + c944d25 commit 0c54f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example_app_generator/spec/support/default_preview_path

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ require_file_stub 'config/environment' do
4848
config.action_mailer.show_previews = (ENV['SHOW_PREVIEWS'] == 'true')
4949
end
5050

51-
config.active_record.legacy_connection_handling = false if Rails::VERSION::STRING >= '7'
51+
config.active_record.legacy_connection_handling = false if Rails::VERSION::STRING.start_with?('7.0')
5252
end
5353
end
5454

0 commit comments

Comments
 (0)