Is it possible to override default_scope in rails_admin?

For example, I have:

class Answer include Mongoid::Document default_scope where(status: "active") end 

However, when I have this class, none of my hidden answers appear in rails_admin. Any recommendations on this?

+4
source share
1 answer

I would do this:

 list scopes [:unscoped, :nil, :scope1] 
0
source

Source: https://habr.com/ru/post/1490915/


All Articles