diff options
Diffstat (limited to 'app/models/preview_card.rb')
-rw-r--r-- | app/models/preview_card.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/preview_card.rb b/app/models/preview_card.rb index a57f1252c..c334c48aa 100644 --- a/app/models/preview_card.rb +++ b/app/models/preview_card.rb @@ -36,6 +36,7 @@ class PreviewCard < ApplicationRecord has_attached_file :image, styles: { original: '120x120#' }, convert_options: { all: '-quality 80 -strip' } include Attachmentable + include Remotable validates :url, presence: true validates_attachment_content_type :image, content_type: IMAGE_MIME_TYPES |