diff --git a/Gemfile b/Gemfile index 577330c2..695a117e 100644 --- a/Gemfile +++ b/Gemfile @@ -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 diff --git a/lib/polyamorous/polyamorous.rb b/lib/polyamorous/polyamorous.rb index 9e558709..f1b759d2 100644 --- a/lib/polyamorous/polyamorous.rb +++ b/lib/polyamorous/polyamorous.rb @@ -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 diff --git a/ransack.gemspec b/ransack.gemspec index 3e4e15fd..62d565b6 100644 --- a/ransack.gemspec +++ b/ransack.gemspec @@ -15,8 +15,8 @@ Gem::Specification.new do |s| s.required_ruby_version = '>= 3.0' s.license = 'MIT' - s.add_dependency 'activerecord', '>= 6.1.5' - s.add_dependency 'activesupport', '>= 6.1.5' + s.add_dependency 'activerecord', '>= 7.2' + s.add_dependency 'activesupport', '>= 7.2' s.add_dependency 'i18n' s.files = `git ls-files`.split("\n")