From 855abf5f2af098d60602118edaf511f364fe88f3 Mon Sep 17 00:00:00 2001 From: Paul Bob Date: Fri, 13 Oct 2023 11:22:07 +0300 Subject: [PATCH] fix: use authorizable_ransackable_attributes instead super on ransackable_attributes --- docs/3.0/dynamic-filters.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/3.0/dynamic-filters.md b/docs/3.0/dynamic-filters.md index 7ca2ac45..7b024f64 100644 --- a/docs/3.0/dynamic-filters.md +++ b/docs/3.0/dynamic-filters.md @@ -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 ```