Skip to content

Instantly share code, notes, and snippets.

@BelenRemedi
Last active August 27, 2019 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BelenRemedi/bf68426a875b11fe26aa9b99e0dd7717 to your computer and use it in GitHub Desktop.
Save BelenRemedi/bf68426a875b11fe26aa9b99e0dd7717 to your computer and use it in GitHub Desktop.
# app/models/my_model.rb
def self.ransackable_scopes(_auth_object = nil)
%i(my_custom_filter_eq)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment