Fix Ruby 2.7 keyword args on Repository model
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.
Showing
Please register or sign in to comment