Skip to content

Commit a3a25e2

Browse files
committed
Fix Ransack version check for allowlisting attributes and associations
1 parent d0bc702 commit a3a25e2

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)