You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 builtin ransackable_attributes method is deprecated.
It would be nice to simply ban the User.*password but allow the rest. Something like that.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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 builtin
ransackable_attributesmethod is deprecated
.It would be nice to simply ban the
User.*password
but allow the rest. Something like that.Related: #1426
Beta Was this translation helpful? Give feedback.
All reactions