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.5.13 app/models/ckeditor/attachment_file.rb
thecore-1.5.12 app/models/ckeditor/attachment_file.rb
thecore-1.5.10 app/models/ckeditor/attachment_file.rb
thecore-1.5.9 app/models/ckeditor/attachment_file.rb
thecore-1.5.8 app/models/ckeditor/attachment_file.rb
thecore-1.5.7 app/models/ckeditor/attachment_file.rb
thecore-1.5.6 app/models/ckeditor/attachment_file.rb
thecore-1.5.5 app/models/ckeditor/attachment_file.rb
thecore-1.5.4 app/models/ckeditor/attachment_file.rb
glebtv-ckeditor-4.7.3.1 lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/attachment_file.rb
glebtv-ckeditor-4.7.3 lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/attachment_file.rb
ckeditor-4.2.4 lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/attachment_file.rb
ckeditor-4.2.3 lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/attachment_file.rb
ckeditor-4.2.2 lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/attachment_file.rb
ckeditor-4.2.1 lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/attachment_file.rb
ckeditor-4.2.0 lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/attachment_file.rb