Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Calling arrange method on subclass ignores its default_scope #119

douglascamata opened this Issue Feb 26, 2013 · 1 comment


None yet
1 participant

I have a Category model, without any default scope, and a TreelessCategory model, that inherits Category, and add a default_scope.

When I call arrange (the method that builds the tree) in TreelessCategory, my scope is totally ignored. But when I move the scope to Category and call arrange there, it works as expected.

@douglascamata douglascamata referenced this issue in dalpo/rails_admin_nestable Feb 26, 2013


Filter Tree View Rows #11

Solved this putting

def self.base_class

In my TreelessCategory model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment