From fc8c3c16b70837614e771abcfed56d7b5e1f7ec7 Mon Sep 17 00:00:00 2001 From: Rob Kaufman Date: Thu, 8 Feb 2024 01:18:25 -0800 Subject: [PATCH] call the cops --- app/models/bulkrax/status.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/bulkrax/status.rb b/app/models/bulkrax/status.rb index ba442fd7..534f176f 100644 --- a/app/models/bulkrax/status.rb +++ b/app/models/bulkrax/status.rb @@ -23,7 +23,7 @@ def self.latest_by_statusable_subtable end def latest? - self.id == self.class.where(statusable_id: self.statusable_id, statusable_type: self.statusable_type).order('id desc').pluck(:id).first + self.id == self.class.where(statusable_id: self.statusable_id, statusable_type: self.statusable_type).order('id desc').pick(:id) end end end