Skip to content

Instantly share code, notes, and snippets.

@a-chernykh
Created March 17, 2014 12:26
Show Gist options
  • Save a-chernykh/9598346 to your computer and use it in GitHub Desktop.
Save a-chernykh/9598346 to your computer and use it in GitHub Desktop.
Add "not equals" option to ActiveAdmin string filter
en:
active_admin:
filters:
predicates:
not_eq: "Not equals"
module ActiveAdmin
module Inputs
class FilterStringWithNegativeInput < FilterStringInput
filter :contains, :equals, :starts_with, :ends_with, :not_eq
end
end
end
@millie
Copy link

millie commented Jan 16, 2018

Thanks for this! Very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment