Skip to content

Commit b91cf5d

Browse files
committed
fix version comparison
1 parent 87c8936 commit b91cf5d

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)