How to easily ban a few attributes for searching in Ransack 4.0? #1432
                  
                    
                      viktorsmari
                    
                  
                
                  started this conversation in
                General
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
We have an app that has almost 50 models, and some models have 100 of attributes.
We only need to ban searching on the User table.
What is the easiest way to do this?
I feel like the documentation is all over the place, sending me in different directions.
And when I use
ransackable_attributes, I get a deprecation warning.DEPRECATION WARNING: Ransack's builtinransackable_attributesmethod is deprecated.It would be nice to simply ban the
User.*passwordbut allow the rest. Something like that.Related: #1426
Beta Was this translation helpful? Give feedback.
All reactions