Method: Transit::Asset#skip_processing_unless_image
- Defined in:
- app/models/transit/asset.rb
#skip_processing_unless_image ⇒ Object
50 51 52 53 54 |
# File 'app/models/transit/asset.rb', line 50 def skip_processing_unless_image if !(file.content_type =~ %r{^(image|(x-)?application)/(x-png|pjpeg|jpeg|jpg|png|gif)$}) return false end end |