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