Skip to content

Commit

Permalink
Merge pull request #1516 from activerecord-hackery/fix-version-compar…
Browse files Browse the repository at this point in the history
…ison

fix version comparison
  • Loading branch information
gregmolnar authored Aug 10, 2024
2 parents 87c8936 + b91cf5d commit 8f0fd2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ gemspec

gem 'rake'

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

rails_version = case rails
when /\// # A path
Expand Down
2 changes: 1 addition & 1 deletion lib/polyamorous/polyamorous.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module Polyamorous
require 'polyamorous/activerecord/join_dependency'
require 'polyamorous/activerecord/reflection'

if ::ActiveRecord.version > ::Gem::Version.new("7.1")
if ::ActiveRecord.version >= ::Gem::Version.new("7.2")
require "polyamorous/activerecord/join_association_7_2"
end

Expand Down

0 comments on commit 8f0fd2c

Please sign in to comment.