Class: ActiveAdmin::Resource
- Inherits:
-
Object
- Object
- ActiveAdmin::Resource
- Defined in:
- lib/active_admin/mongoid/resource.rb,
lib/active_admin/mongoid/resource/attributes.rb
Defined Under Namespace
Modules: Attributes
Instance Method Summary collapse
-
#default_filters ⇒ Object
the commit: github.com/activeadmin/activeadmin/commit/1ef08af5044814c336917fa93aea607dce16dcb7 adds in the _id field, which doesn’t work with ransack for some reason or another.
Instance Method Details
#default_filters ⇒ Object
the commit: github.com/activeadmin/activeadmin/commit/1ef08af5044814c336917fa93aea607dce16dcb7
adds in the _id field, which doesn't work with ransack for some reason or
another. I'm not going to investigate any deeper, let's just remove the
underscore prefixed fields as was the prior behavior
8 9 10 |
# File 'lib/active_admin/mongoid/resource.rb', line 8 def default_filters super.reject { |filter| filter == :_id } end |