module Rich::FilesHelper

Public Instance Methods

thumb_for_file(file) click to toggle source
# 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