Class: ActiveAdmin::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/active_admin/mongoid/resource.rb,
lib/active_admin/mongoid/resource/attributes.rb

Defined Under Namespace

Modules: Attributes

Instance Method Summary collapse

Instance Method Details

#default_filtersObject

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