diff --git a/app/models/screenshot.rb b/app/models/screenshot.rb index b11ee73..792a66b 100644 --- a/app/models/screenshot.rb +++ b/app/models/screenshot.rb @@ -10,7 +10,7 @@ class Screenshot < ActiveRecord::Base default_url: '/images/dummy/no-screenshots-available.svg', path: ':rails_root/public/screenshots/:id_partition/:style.png', url: '/screenshots/:id_partition/:style.png' - validates_attachment_content_type :image, :content_type => /\Aimage\/png\Z/ + validates_attachment_content_type :image, :content_type => 'image/png' # Return caption for full-screen screenshots. # Takes the description of a screenshot if available.