Use model scopes with Ransack (coded by @avit and @glebm).