• Tan Le's avatar
    Fix Ruby 2.7 keyword args on Repository model · 16dac73b
    Tan Le authored
    This change improves the `method_missing` implementation.
    
    - The `lookup` delegation is extracted out of `method_missing` to a
    separate method and handle caching for `nil` value.
    - Other method delegation is handled by `delegate_missing_to` which can
    handle keyword arguments for both Ruby 2.7 and 3.0.
    16dac73b
repository_spec.rb 91.5 KB