sferik/rails_admin — Issue #983: Custom scope for rails_admin
Author: alecslupu
Created: 2012-02-15 22:11:23+00:00
State: open

Hello!
I am facing the following problem and i dunno how to fix it ... It might be a "Feature request" or just a "Documentation issue".

I have created an application that requires all the frontend models to be marked as active, so, the easiest way to achieve that was to add a "default_scope" in my models to match the default policy.
Now, while i am developing the admin ... i am facing a new problem ... I need to find all my records ... not only that are active... Basicallly, i'd need to use something like :

MyModel.unscoped ...

How could i achieve that ?