From 47feea57a3287e09cbe70ea69f73b5c6e76df7cb Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Sat, 7 Sep 2019 11:51:20 +0900 Subject: [PATCH] Registration#matches? takes keyword arguments --- .../lib/active_record/type/adapter_specific_registry.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activerecord/lib/active_record/type/adapter_specific_registry.rb b/activerecord/lib/active_record/type/adapter_specific_registry.rb index c8c16635b1..77590b821a 100644 --- a/activerecord/lib/active_record/type/adapter_specific_registry.rb +++ b/activerecord/lib/active_record/type/adapter_specific_registry.rb @@ -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