Closed apauly closed 6 years ago
I've added support for relations which have a default conditions. I've also added a test - all tests are passing.
E.g. something like this:
class User < ActiveRecord::Base has_many :drafts, -> { where published: nil } end
Looks great! Thanks.
I've added support for relations which have a default conditions. I've also added a test - all tests are passing.
E.g. something like this: