Skip to content

Commit

Permalink
Merge pull request #57 from ifad/chore/56-improve-code-readability
Browse files Browse the repository at this point in the history
Improve code readability
  • Loading branch information
tagliala authored Feb 27, 2024
2 parents 3d284bd + a482847 commit 5088d96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hawk/model/proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def method_missing(meth, *args, &block)

# If the method accepts a variable number of parameters, and
# the last provided one is an hash, merge the scoped params.
elsif method.arity < 0 && (method.arity + args.size == 0) && args.last.is_a?(Hash)
elsif method.arity < 0 && (method.arity + args.size) == 0 && args.last.is_a?(Hash)
args[-1] = params.deep_merge(args[-1])

end
Expand Down

0 comments on commit 5088d96

Please sign in to comment.