Skip to content

Commit

Permalink
fix: use authorizable_ransackable_attributes instead super on ransack…
Browse files Browse the repository at this point in the history
…able_attributes
  • Loading branch information
Paul-Bob committed Oct 13, 2023
1 parent 45145ec commit 855abf5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/3.0/dynamic-filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ end
# Or
# https://activerecord-hackery.github.io/ransack/going-further/other-notes/#authorization-allowlistingdenylisting
class Project < ApplicationRecord
def self.ransackable_attributes(auth_object = nil)
super
authorizable_ransackable_attributes
end
end
```
Expand Down

0 comments on commit 855abf5

Please sign in to comment.