Aren't you looking for scopes ?
class A < ActiveRecord::Base
scope :myscope, lambda { joins(:b).where(column: true) }
end
You can then call a scope with the following :
A.mymeth.where(col: false)
All the SQL conditions you will have added in the scope will be automatically added to your query when called.