about summary refs log tree commit diff
path: root/app/models/preview_card.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/preview_card.rb')
-rw-r--r--app/models/preview_card.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/preview_card.rb b/app/models/preview_card.rb
index 0aa771101..238588157 100644
--- a/app/models/preview_card.rb
+++ b/app/models/preview_card.rb
@@ -11,6 +11,8 @@ class PreviewCard < ApplicationRecord
 
   has_attached_file :image, styles: { original: '120x120#' }, convert_options: { all: '-quality 80 -strip' }
 
+  include Attachmentable
+
   validates :url, presence: true
   validates_attachment_content_type :image, content_type: IMAGE_MIME_TYPES
   validates_attachment_size :image, less_than: 1.megabytes