From f76e3496d23ec3711d851e4f76d0421bfa00c160 Mon Sep 17 00:00:00 2001 From: faouzzz Date: Wed, 19 Apr 2017 14:33:39 +0200 Subject: [PATCH] fix argument error --- lib/record_with_operator/recorder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/record_with_operator/recorder.rb b/lib/record_with_operator/recorder.rb index 1816403..f09ca55 100644 --- a/lib/record_with_operator/recorder.rb +++ b/lib/record_with_operator/recorder.rb @@ -19,7 +19,7 @@ def set_updater def update_deleter return if frozen? return unless operator - self.class.update_all("#{RecordWithOperator.deleter_column} = #{operator.id}", ["#{self.class.primary_key} = ?", id]) + self.class.update_all("#{RecordWithOperator.deleter_column} = #{operator.id}") send("#{RecordWithOperator.deleter_column}=", operator.id) end