Skip to content

Commit

Permalink
ISSUE-126: Update ransack to 4.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
rocket-turtle authored and Jonas Schoeler committed Nov 2, 2023
1 parent c6f46ac commit 0e16abb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## [Unreleased]
- Update ransack to 4.1.
- Drop support for Ruby 2.6 and 2.7.
- Drop support for ActiveRecord 6.0.

Expand Down
2 changes: 1 addition & 1 deletion baby_squeel.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
spec.files = Dir.glob('{lib/**/*,*.{md,txt,gemspec}}')

spec.add_dependency 'activerecord', '>= 6.1', '< 7.1'
spec.add_dependency 'ransack', '~> 2.3'
spec.add_dependency 'ransack', '~> 4.1'

spec.add_development_dependency 'bundler', '~> 2'
spec.add_development_dependency 'rake', '~> 13.0'
Expand Down
8 changes: 2 additions & 6 deletions lib/baby_squeel.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
require 'active_record'
require 'active_record/relation'
begin
require 'polyamorous'
rescue LoadError
# Trying loading from 'ransack' as of commit c9cc20de9 (post v2.3.2)
require 'polyamorous/polyamorous'
end
# Loading polyamorous from 'ransack' as of commit c9cc20de9 (post v2.3.2)
require 'polyamorous/polyamorous'
require 'baby_squeel/version'
require 'baby_squeel/errors'
require 'baby_squeel/active_record/base'
Expand Down

0 comments on commit 0e16abb

Please sign in to comment.