• Kerri Miller's avatar
    Prefer explicit methods over delegates for predicates · b4da574a
    Kerri Miller authored
    Predicate methods should return a boolean value, however when we
    delegate with allow_nil to properly handle non-extant relations, we
    end up with true, false, and nil as possible responses. While we
    generally are loose about nil being equivalent to false in Ruby, a
    predicate method is a special signal that we very much care about
    the boolean-nature of its response.
    b4da574a
merge_request_spec.rb 39.9 KB