Module: AnotherUploader::Icons
- Included in:
- Upload
- Defined in:
- lib/another_uploader/icons.rb
Instance Method Summary collapse
Instance Method Details
#icon_name ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/another_uploader/icons.rb', line 7 def icon_name if self.is_pdf? :pdf elsif self.is_word? :doc elsif self.is_mp3? :mp3 elsif self.is_excel? :spreadsheet elsif self.is_text? :text else :none end end |
#icon_path ⇒ Object
3 4 5 |
# File 'lib/another_uploader/icons.rb', line 3 def icon_path "another_uploader/#{icon_name}.gif" end |