Sha256: cb8430c20411ac6be63893bb19bfa30871eeff45feac2c0d79acfef0edeb0eaa

Contents?: true

Size: 440 Bytes

Versions: 44

Compression:

Stored size: 440 Bytes

Contents

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

44 entries across 44 versions & 1 rubygems

Version Path
activeadmin-selleo-cms-0.0.14 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.13 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.12 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.11 app/models/ckeditor/attachment_file.rb