attribute :foo, :string, filterable: false
filter :foo do
# ...
end
It would raise an error that you're trying to make something explicitly marked unfilterable filterable.
Instead, let's just update the attribute to be filterable. Not only does this make logical sense, it allows us to do library dev things (like generate an unfilterable attribute under-the-hood while allowing user overrides).
Previously if you did
It would raise an error that you're trying to make something explicitly marked unfilterable filterable.
Instead, let's just update the attribute to be filterable. Not only does this make logical sense, it allows us to do library dev things (like generate an unfilterable attribute under-the-hood while allowing user overrides).