Change ckeditor gem and kaminari in gemfile

This commit is contained in:
chris committed 2013-07-22 17:26:32 +08:00
1 parent 92faeccdb6
commit 6cf249ccfb
12 files changed
+141 -9

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
class Ckeditor::Asset
include Ckeditor::Orm::Mongoid::AssetBase
delegate :url, :current_path, :size, :content_type, :filename, :to => :data
validates_presence_of :data
end
+7
View File
@@ -0,0 +1,7 @@
class Ckeditor::AttachmentFile < Ckeditor::Asset
mount_uploader :data, CkeditorAttachmentFileUploader, :mount_on => :data_file_name
def url_thumb
@url_thumb ||= Ckeditor::Utils.filethumb(filename)
end
end
+7
View File
@@ -0,0 +1,7 @@
class Ckeditor::Picture < Ckeditor::Asset
mount_uploader :data, CkeditorPictureUploader, :mount_on => :data_file_name
def url_content
url(:content)
end
end