Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# app/models/my_model.rb
def self.my_custom_filter_eq(value)
where(column_1: value) # or probably a more complex query that uses the value inputted by the admin user
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment