Skip to content

Commit

Permalink
Fix Rails edge deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Mar 29, 2024
1 parent 310ae0a commit 50ef894
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/support/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

module ChronoTest
AR = ActiveRecord::Base
AR.automatically_invert_plural_associations = true if AR.respond_to?(:automatically_invert_plural_associations)
log = ENV['VERBOSE'].present? ? $stderr : 'spec/debug.log'.tap { |f| File.open(f, 'ab') { |ft| ft.truncate(0) } }
AR.logger = ::Logger.new(log).tap do |l|
l.level = 0
Expand Down

0 comments on commit 50ef894

Please sign in to comment.