Class: Ckeditor::AttachmentFile

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

Instance Method Summary collapse

Instance Method Details

#url_thumbObject



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