From 4f49177322566065d8f5c0175647672e2cd6ba5b Mon Sep 17 00:00:00 2001 From: barseek Date: Wed, 21 Jun 2023 18:01:00 +0200 Subject: [PATCH] Allow kwargs --- lib/rectify/command.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rectify/command.rb b/lib/rectify/command.rb index 684af72..183de02 100644 --- a/lib/rectify/command.rb +++ b/lib/rectify/command.rb @@ -41,9 +41,9 @@ def transaction(&block) ActiveRecord::Base.transaction(&block) if block_given? end - def method_missing(method_name, *args, &block) + def method_missing(method_name, *args, **kwargs, &block) if @caller.respond_to?(method_name, true) - @caller.send(method_name, *args, &block) + @caller.send(method_name, *args, **kwargs, &block) else super end