Class: Ckeditor::AttachmentFile

Inherits:
Asset
  • Object
show all
Defined in:
app/models/ckeditor/attachment_file.rb

Overview

Schema Information

Table name: ckeditor_assets

id                :integer          not null, primary key
data_file_name    :string(255)      not null
data_content_type :string(255)
data_file_size    :integer
assetable_id      :integer
assetable_type    :string(30)
type              :string(30)
width             :integer
height            :integer
created_at        :datetime
updated_at        :datetime

Instance Method Summary collapse

Instance Method Details

#url_thumbObject



23
24
25
# File 'app/models/ckeditor/attachment_file.rb', line 23

def url_thumb
  @url_thumb ||= Ckeditor::Utils.filethumb(filename)
end