From 3a628945ade35f3ba351ba90e271608520753174 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 11 Oct 2023 11:39:16 -0400 Subject: Removed ckeditor --- app/models/ckeditor/asset.rb | 4 ---- app/models/ckeditor/attachment_file.rb | 13 ------------- app/models/ckeditor/picture.rb | 14 -------------- 3 files changed, 31 deletions(-) delete mode 100644 app/models/ckeditor/asset.rb delete mode 100644 app/models/ckeditor/attachment_file.rb delete mode 100644 app/models/ckeditor/picture.rb (limited to 'app/models/ckeditor') diff --git a/app/models/ckeditor/asset.rb b/app/models/ckeditor/asset.rb deleted file mode 100644 index cf636ed..0000000 --- a/app/models/ckeditor/asset.rb +++ /dev/null @@ -1,4 +0,0 @@ -class Ckeditor::Asset < ActiveRecord::Base - include Ckeditor::Orm::ActiveRecord::AssetBase - include Ckeditor::Backend::Paperclip -end 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 @@ -class Ckeditor::AttachmentFile < Ckeditor::Asset - has_attached_file :data, - url: '/uploads/attachments/:id/:filename', - path: ':rails_root/public/uploads/attachments/:id/:filename' - - validates_attachment_presence :data - validates_attachment_size :data, less_than: 100.megabytes - do_not_validate_attachment_file_type :data - - def url_thumb - @url_thumb ||= Ckeditor::Utils.filethumb(filename) - end -end diff --git a/app/models/ckeditor/picture.rb b/app/models/ckeditor/picture.rb deleted file mode 100644 index 02aa9b2..0000000 --- a/app/models/ckeditor/picture.rb +++ /dev/null @@ -1,14 +0,0 @@ -class Ckeditor::Picture < Ckeditor::Asset - has_attached_file :data, - url: '/uploads/pictures/:id/:style_:basename.:extension', - path: ':rails_root/public/uploads/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/ - - def url_content - url(:content) - end -end -- cgit 1.4.1