kristianmandrup/cantango — Issue #11: Regression between 3dfb4ea and 7f4d25a
Author: prognostikos
Created: 2011-10-31 10:30:28+00:00
State: open

Unfortunately I'm seeing another NoMethodError with the combination of activeadmin and cantango at the latest 7f4d25a1d11d8f3012096ea310acfbc4588bfd7b.

3dfb4ea33db2ca8f6ec5b0c1f9fb8a7c633f0980 of cantango tested fine yesterday. With the latest versons of master of both active admin and cantango I'm seeing the following error if both are enabled. If either or neither are enabled, there are no problems.

```
lib/kaminari/models/mongoid_extension.rb:22:in `block in ': undefined method `scope' for Mongoid::Document:Module (NoMethodError)
```

I realize the source of the error is kaminari which is required by active admin, but again using active admin alone I do not see the same error, and active admin + cantango 3dfb4ea33db2ca8f6ec5b0c1f9fb8a7c633f0980 works fine as well. It's only when I have both bundled with cantango at 7f4d25a1d11d8f3012096ea310acfbc4588bfd7b that I see the exception.