Class: Ckeditor::AttachmentFile
- Inherits:
-
Asset
- Object
- Asset
- Ckeditor::AttachmentFile
- Defined in:
- app/models/ckeditor/attachment_file.rb
Instance Method Summary collapse
Instance Method Details
#url_thumb ⇒ Object
4 5 6 7 8 9 |
# File 'app/models/ckeditor/attachment_file.rb', line 4 def url_thumb @url_thumb ||= begin extname = File.extname(filename).gsub(/^\./, '') "/javascripts/ckeditor/filebrowser/images/thumbs/#{extname}.gif" end end |