Skip to content

Commit 4459a80

Browse files
authored
Merge pull request #46 from goosys/fix/ransack-version-check
Fix Ransack version check for allowlisting attributes and associations
2 parents d0bc702 + a3a25e2 commit 4459a80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/dummy/app/models/application_record.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class ApplicationRecord < ActiveRecord::Base
88
scope :published, -> {}
99

1010
class << self
11-
if Gem::Version.new(Ransack::VERSION) >= Gem::Version.new("4.1.1")
11+
if Gem::Version.new(Ransack::VERSION) >= Gem::Version.new("4.0.0")
1212
def ransackable_attributes(auth_object = nil)
1313
authorizable_ransackable_attributes
1414
end

0 commit comments

Comments
 (0)