Skip to content

Commit

Permalink
fix version comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmolnar committed Aug 10, 2024
1 parent 87c8936 commit b91cf5d
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 b91cf5d

Please sign in to comment.