From 531750cf6fa1f50778b4f44d57ce4c9aff2aa31f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 7 Sep 2018 13:54:30 +0200 Subject: [PATCH] Restore commented lines Not sure if they were supposed to be removed. For now I'll assume they were commented accidentally. --- app/models/ckeditor/picture.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/ckeditor/picture.rb b/app/models/ckeditor/picture.rb index 9c05daabf..445c2bbd9 100644 --- a/app/models/ckeditor/picture.rb +++ b/app/models/ckeditor/picture.rb @@ -4,9 +4,9 @@ class Ckeditor::Picture < Ckeditor::Asset path: ':rails_root/public/ckeditor_assets/pictures/:id/:style_:basename.:extension', styles: { content: '800>', thumb: '118x100#' } - # validates_attachment_presence :data - # validates_attachment_size :data, less_than: 2.megabytes - # validates_attachment_content_type :data, content_type: /\Aimage/ + validates_attachment_presence :data + validates_attachment_size :data, less_than: 2.megabytes + validates_attachment_content_type :data, content_type: /\Aimage/ def url_content url(:content)