Screenshot validator uses string instead of regex
This commit is contained in:
parent
4c6beadd8e
commit
7e1bf0d152
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ class Screenshot < ActiveRecord::Base
|
||||||
default_url: '/images/dummy/no-screenshots-available.svg',
|
default_url: '/images/dummy/no-screenshots-available.svg',
|
||||||
path: ':rails_root/public/screenshots/:id_partition/:style.png',
|
path: ':rails_root/public/screenshots/:id_partition/:style.png',
|
||||||
url: '/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.
|
# Return caption for full-screen screenshots.
|
||||||
# Takes the description of a screenshot if available.
|
# Takes the description of a screenshot if available.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue