about summary refs log tree commit diff stats
path: root/app/models/ckeditor/attachment_file.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/ckeditor/attachment_file.rb')
-rw-r--r--app/models/ckeditor/attachment_file.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/app/models/ckeditor/attachment_file.rb b/app/models/ckeditor/attachment_file.rb deleted file mode 100644 index fe09132..0000000 --- a/app/models/ckeditor/attachment_file.rb +++ /dev/null
@@ -1,13 +0,0 @@
1class Ckeditor::AttachmentFile < Ckeditor::Asset
2 has_attached_file :data,
3 url: '/uploads/attachments/:id/:filename',
4 path: ':rails_root/public/uploads/attachments/:id/:filename'
5
6 validates_attachment_presence :data
7 validates_attachment_size :data, less_than: 100.megabytes
8 do_not_validate_attachment_file_type :data
9
10 def url_thumb
11 @url_thumb ||= Ckeditor::Utils.filethumb(filename)
12 end
13end