I would like to be able to have an AR::Base descendant that only deals
with a subset of rows in a table based on some filtering criterion.
For example, let’s say I make an object “job” but I only want to select
rows from the “jobs” table where the “status” column is not equal to
Is there a way to apply the “status != ‘X’” condition (similar to a
condition on a find or a has_many declaration) to the object or do I
have to handle this explicitly in whatever find() calls I make on the
Obviously, one way to go is to just make a view that does my filtering