Viewer.visible(current_account.posts, to: current_user)
That's essentially a function inside a module/namespace. You aren't making a separate class/object for it. Viewer.visible(current_account.posts, to: current_user)
That's essentially a function inside a module/namespace. You aren't making a separate class/object for it.It doesn't get any better by having Viewer.new(current_account.posts, current_user).visibles or #execute or whatever else you'd do in a query object.