From 94e94a62a27b6c75bb0ec4d99743dbbb2fc389d7 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Mon, 23 Jan 2017 13:43:51 -0500 Subject: [PATCH] rubocop --- app/models/concerns/attachable.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/models/concerns/attachable.rb b/app/models/concerns/attachable.rb index 87250a09..0a5a6b12 100644 --- a/app/models/concerns/attachable.rb +++ b/app/models/concerns/attachable.rb @@ -7,23 +7,23 @@ module Attachable end def images - attachments.where(file_content_type: self.image_types) + attachments.where(file_content_type: image_types) end def audios - attachments.where(file_content_type: self.audio_types) + attachments.where(file_content_type: audio_types) end def texts - attachments.where(file_content_type: self.text_types) + attachments.where(file_content_type: text_types) end def pdfs - attachments.where(file_content_type: self.pdf_types) + attachments.where(file_content_type: pdf_types) end def documents - attachments.where(file_content_type: self.text_types + self.pdf_types) + attachments.where(file_content_type: text_types + pdf_types) end class << self