Scope changed to class method in AR

This fix all issues as https://github.com/amatsuda/kaminari/issues/421.