Class: Ckeditor::AttachmentFile

Inherits:
Asset
  • Object
show all
Defined in:
lib/generators/ckeditor/templates/mongoid/shrine/ckeditor/attachment_file.rb,
lib/generators/ckeditor/templates/mongoid/paperclip/ckeditor/attachment_file.rb,
lib/generators/ckeditor/templates/mongoid/carrierwave/ckeditor/attachment_file.rb,
lib/generators/ckeditor/templates/active_record/shrine/ckeditor/attachment_file.rb,
lib/generators/ckeditor/templates/active_record/dragonfly/ckeditor/attachment_file.rb,
lib/generators/ckeditor/templates/active_record/paperclip/ckeditor/attachment_file.rb,
lib/generators/ckeditor/templates/active_record/carrierwave/ckeditor/attachment_file.rb,
lib/generators/ckeditor/templates/active_record/active_storage/ckeditor/attachment_file.rb

Constant Summary

Constants included from Backend::Dragonfly

Backend::Dragonfly::FORMATS

Instance Attribute Summary

Attributes inherited from Asset

#data

Instance Method Summary collapse

Methods included from Backend::ActiveStorage

included

Methods included from Backend::Dragonfly

included

Methods included from Orm::ActiveRecord::AssetBase

included

Methods included from Backend::Paperclip

included

Methods included from Backend::Shrine

included

Methods included from Orm::Mongoid::AssetBase

included

Instance Method Details

#url_thumbObject



6
7
8
# File 'lib/generators/ckeditor/templates/active_record/active_storage/ckeditor/attachment_file.rb', line 6

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