Sha256: d1d5e870d726d05d9fe73fab31c43792d05d505e84da8d5233b6dd46b17e6d2a

Contents?: true

Size: 450 Bytes

Versions: 88

Compression:

Stored size: 450 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_size :data, :less_than => 100.megabytes
  validates_attachment_presence :data

  def url_thumb
    @url_thumb ||= Ckeditor::Utils.filethumb(filename)
  end
end

Version data entries

88 entries across 59 versions & 4 rubygems

Version Path
ckeditor-4.1.3 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb
ckeditor-4.1.3 test/tmp/app/models/ckeditor/attachment_file.rb
ckeditor-4.1.2 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb
ckeditor-4.1.2 test/tmp/app/models/ckeditor/attachment_file.rb
ckeditor-4.1.1 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb
glebtv-ckeditor-4.4.3.4 test/tmp/app/models/ckeditor/attachment_file.rb
glebtv-ckeditor-4.4.3.3 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb
glebtv-ckeditor-4.4.3.3 test/tmp/app/models/ckeditor/attachment_file.rb
glebtv-ckeditor-4.4.3.2 test/tmp/app/models/ckeditor/attachment_file.rb
glebtv-ckeditor-4.4.3.2 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb
glebtv-ckeditor-4.4.3.1 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb
glebtv-ckeditor-4.4.3.1 test/tmp/app/models/ckeditor/attachment_file.rb
glebtv-ckeditor-4.4.3.0 test/tmp/app/models/ckeditor/attachment_file.rb
glebtv-ckeditor-4.4.3.0 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb
glebtv-ckeditor-4.3.2.6 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb
glebtv-ckeditor-4.3.2.6 test/tmp/app/models/ckeditor/attachment_file.rb
ckeditor-4.1.0 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb
glebtv-ckeditor-4.3.2.5 test/tmp/app/models/ckeditor/attachment_file.rb
glebtv-ckeditor-4.3.2.5 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb
ckeditor-4.0.11 lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb