Restore commented lines
Not sure if they were supposed to be removed. For now I'll assume they were commented accidentally.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user