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.61 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.60 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.59 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.58 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.54 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.52 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.51 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.49 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.48 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.47 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.46 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.45 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.44 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.43 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.42 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.41 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.40 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.39 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.38 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.37 app/models/ckeditor/attachment_file.rb