Skip to content

Commit

Permalink
tmp: silence deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
bquorning committed Oct 12, 2023
1 parent a198682 commit 89b1396
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
LEGACY_CONNECTION_HANDLING =
ActiveRecord.version < Gem::Version.new('7.1') && ActiveRecord::Base.legacy_connection_handling

ActiveRecord.deprecator.behavior = :silence if ActiveRecord.version >= Gem::Version.new('7.1')

ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + '/test.log')

Thread.abort_on_exception = true
Expand Down

0 comments on commit 89b1396

Please sign in to comment.