Skip to content

Commit

Permalink
Merge pull request #282 from ifad/chore/278-fix-deprecation
Browse files Browse the repository at this point in the history
Fix Rails edge deprecations
  • Loading branch information
tagliala authored Mar 29, 2024
2 parents 310ae0a + 50ef894 commit 6c1d1ed
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 6c1d1ed

Please sign in to comment.