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.36 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.35 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.34 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.33 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.32 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.31 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.30 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.29 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.28 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.27 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.26 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.25 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.24 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.23 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.22 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.21 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.20 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.18 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.17 app/models/ckeditor/attachment_file.rb
activeadmin-selleo-cms-0.0.16 app/models/ckeditor/attachment_file.rb