Module: Rich::FilesHelper

Defined in:
app/helpers/rich/files_helper.rb

Instance Method Summary collapse

Instance Method Details

#thumb_for_file(file) ⇒ Object



4
5
6
7
8
9
10
# File 'app/helpers/rich/files_helper.rb', line 4

def thumb_for_file(file)
  if file.simplified_type == "image"
    file.rich_file.url(:rich_thumb)
  else
    asset_path "rich/document-thumb.png"
  end
end