about summary refs log tree commit diff
path: root/app/models/preview_card.rb
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-05-18 22:43:10 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-18 15:43:10 +0200
commit79ef8b3653a6ff7edbc1af0741dff36522262c07 (patch)
tree161a1bec18bed8475ae780dd8e28344d0dcfbb1d /app/models/preview_card.rb
parentb11c4326d289d8b0307f5d1466171ac147a07767 (diff)
Fetch remote image using http.rb (#3114)
Diffstat (limited to 'app/models/preview_card.rb')
-rw-r--r--app/models/preview_card.rb1
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