Show "No screenshots available" as dummy image now.
This commit is contained in:
parent
e54d09a10b
commit
4c6beadd8e
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ class Screenshot < ActiveRecord::Base
|
||||||
|
|
||||||
has_attached_file :image,
|
has_attached_file :image,
|
||||||
styles: { :large => '800x600>', :thumb => '160x120>' },
|
styles: { :large => '800x600>', :thumb => '160x120>' },
|
||||||
default_url: '/images/dummy/no-screenshots-upload-one.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 => /\Aimage\/png\Z/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue