Show "No screenshots available" as dummy image now.

This commit is contained in:
Christoph Haas 2015-04-27 00:19:24 +02:00
parent e54d09a10b
commit 4c6beadd8e

View file

@ -7,7 +7,7 @@ class Screenshot < ActiveRecord::Base
has_attached_file :image,
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',
url: '/screenshots/:id_partition/:style.png'
validates_attachment_content_type :image, :content_type => /\Aimage\/png\Z/