Kievbuy
12/5/2017 - 8:25 AM

Default values in ActiveAdmin filter

add the default value to filter

#set to admin/user.rb

before_action :only => [:index] do
  if params['commit'].blank?
     params['q'] = {:is_acticve => true} 
  end
end