Method: KktShoppe::AttachmentUploader#image?
- Defined in:
- app/uploaders/kkt_shoppe/attachment_uploader.rb
#image?(new_file) ⇒ Boolean
Returns true if the file is an image
15 16 17 |
# File 'app/uploaders/kkt_shoppe/attachment_uploader.rb', line 15 def image?(new_file) self.file.content_type.include? 'image' end |