activeadmin / activeadmin-mongoid

ActiveAdmin hacks to support Mongoid
MIT License
192 stars 210 forks source link

Filters are not working with rails 4.0 #92

Closed max-konin closed 10 years ago

max-konin commented 10 years ago

I am using activeadmin-mongoid (rails4 branch) with Rails 4.0 When I am using this code:

filter :post_name, :as => :string

it is giving me an error

undefined method `_ransackers' for Mongoid::Criteria:Class

I have understood that activeadmin now using ransack instead metasearch. But ransack does not support mongoid

There is also an ransack's adapter for mongoid (https://github.com/kristianmandrup/ransack-mongoid). But it not help to me

elia commented 10 years ago

Yeah I tried with ransack-mongoid once without success. I'll add a note to the readme about broken filters.

oliviermilla commented 9 years ago

+1