Skip to content

Commit 8f0fd2c

Browse files
authored
Merge pull request #1516 from activerecord-hackery/fix-version-comparison
fix version comparison
2 parents 87c8936 + b91cf5d commit 8f0fd2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ gemspec
33

44
gem 'rake'
55

6-
rails = ENV['RAILS'] || '7-1-stable'
6+
rails = ENV['RAILS'] || '7-2-stable'
77

88
rails_version = case rails
99
when /\// # A path

lib/polyamorous/polyamorous.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module Polyamorous
1515
require 'polyamorous/activerecord/join_dependency'
1616
require 'polyamorous/activerecord/reflection'
1717

18-
if ::ActiveRecord.version > ::Gem::Version.new("7.1")
18+
if ::ActiveRecord.version >= ::Gem::Version.new("7.2")
1919
require "polyamorous/activerecord/join_association_7_2"
2020
end
2121

0 commit comments

Comments
 (0)