mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Registration#matches? takes keyword arguments
This commit is contained in:
parent
1a40a48113
commit
47feea57a3
1 changed files with 2 additions and 2 deletions
|
@ -15,9 +15,9 @@ module ActiveRecord
|
|||
Registration
|
||||
end
|
||||
|
||||
def find_registration(symbol, *args)
|
||||
def find_registration(symbol, *args, **kwargs)
|
||||
registrations
|
||||
.select { |registration| registration.matches?(symbol, *args) }
|
||||
.select { |registration| registration.matches?(symbol, *args, **kwargs) }
|
||||
.max
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue