Sha256: cf0c31ef7e53d74bc0b638488d2149a4eca469f8e4091cd205ee224e86a7b221

Contents?: true

Size: 462 Bytes

Versions: 36

Compression:

Stored size: 462 Bytes

Contents

class Ckeditor::AttachmentFile < Ckeditor::Asset
  has_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

36 entries across 36 versions & 3 rubygems

Version Path
thecore-1.7.7 app/models/ckeditor/attachment_file.rb
thecore-1.7.5 app/models/ckeditor/attachment_file.rb
thecore-1.7.3 app/models/ckeditor/attachment_file.rb
thecore-1.7.2 app/models/ckeditor/attachment_file.rb
thecore-1.7.1 app/models/ckeditor/attachment_file.rb
thecore-1.7.0 app/models/ckeditor/attachment_file.rb
thecore-1.6.13 app/models/ckeditor/attachment_file.rb
thecore-1.6.10 app/models/ckeditor/attachment_file.rb
thecore-1.6.9 app/models/ckeditor/attachment_file.rb
thecore-1.6.8 app/models/ckeditor/attachment_file.rb
thecore-1.6.7 app/models/ckeditor/attachment_file.rb
glebtv-ckeditor-4.11.1 lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/attachment_file.rb
thecore-1.6.5 app/models/ckeditor/attachment_file.rb
ckeditor-4.3.0 lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/attachment_file.rb
thecore-1.6.4 app/models/ckeditor/attachment_file.rb
thecore-1.6.3 app/models/ckeditor/attachment_file.rb
thecore-1.6.2 app/models/ckeditor/attachment_file.rb
thecore-1.6.1 app/models/ckeditor/attachment_file.rb
thecore-1.6.0 app/models/ckeditor/attachment_file.rb
thecore-1.5.14 app/models/ckeditor/attachment_file.rb