Sha256: 4276cfd894f836f55abcd4957b7292646326e856927be86664690617c78daae8
Contents?: true
Size: 232 Bytes
Versions: 3
Compression:
Stored size: 232 Bytes
Contents
module Rich module FilesHelper def thumb_for_file(file) if file.simplified_type == "image" file.rich_file.url(:thumb) else asset_path "rich/document-thumb.png" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rich-1.0.2 | app/helpers/rich/files_helper.rb |
rich-1.0.1 | app/helpers/rich/files_helper.rb |
rich-1.0.0 | app/helpers/rich/files_helper.rb |