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 079a7a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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
4 changes: 2 additions & 2 deletions ransack.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 079a7a0

Please sign in to comment.