From 8432877cdfb4ef824f6fa0f4fec4274298ec4484 Mon Sep 17 00:00:00 2001 From: ulferts Date: Wed, 5 Feb 2020 10:41:30 +0100 Subject: [PATCH] class method where intended --- app/models/attachment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/attachment.rb b/app/models/attachment.rb index d75648ca2f..ccea9a1cb2 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -229,7 +229,7 @@ class Attachment < ActiveRecord::Base end end - def tsv_extracted_containers + def self.tsv_extracted_containers Attachment .select(:container_type) .distinct