This PR supports keyword arguments in named scopes.
In the current master version, an ArgumentError is raised.
Ruby version is 3.0.2.
class UsersIndex < Chewy::Index
def self.by_name(name, options:)
end
end
UsersIndex.limit(10).by_name('Martin', options: 'blah blah blah')
# => wrong number of arguments (given 2, expected 1) (ArgumentError)
Before submitting the PR make sure the following are checked:
[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
This PR supports keyword arguments in named scopes.
In the current master version, an
ArgumentError
is raised. Ruby version is 3.0.2.Before submitting the PR make sure the following are checked:
[Fix #issue-number]
(if the related issue exists).master
(if not - rebase it).