• Sean McGivern's avatar
    Speed up cached_pass? for composite rules · e9476eb9
    Sean McGivern authored
    Both `Or` and `And` would evaluate whether each rule passed, then calculate a
    value based on the results of all of those. We can actually return early in many
    cases, without running the rule at all.
    e9476eb9
rule.rb 7.06 KB