Sha256: 8fc0ee5f74a072d528ca07441185db6d16d1ede0807983a25633ffad6c41c091

Contents?: true

Size: 551 Bytes

Versions: 11

Compression:

Stored size: 551 Bytes

Contents

class Ckeditor::AttachmentFile < Ckeditor::Asset
  has_mongoid_attached_file :data,
                            :url => "/ckeditor_assets/attachments/:id/:filename",
                            :path => ":rails_root/public/ckeditor_assets/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

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
danabr75-ckeditor-4.1.6 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb
glebtv-ckeditor-4.6.0 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb
glebtv-ckeditor-4.5.10.3 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb
glebtv-ckeditor-4.5.10.2 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb
glebtv-ckeditor-4.5.10.1 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb
glebtv-ckeditor-4.5.7.1 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb
glebtv-ckeditor-4.5.7 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb
ckeditor_custom_controller-4.1.6 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb
ckeditor-4.1.6 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb
ckeditor-4.1.5 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb
ckeditor-4.1.4 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb