Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix version comparison #1516

Merged
merged 1 commit into from
Aug 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading