From 2aaa4714c1ba4de7eec3b2529d9533909e180ce3 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sun, 26 Apr 2015 01:40:41 +0200 Subject: [PATCH] Cruft removed --- app/models/screenshot.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/models/screenshot.rb b/app/models/screenshot.rb index defd498..b26fdba 100644 --- a/app/models/screenshot.rb +++ b/app/models/screenshot.rb @@ -8,12 +8,8 @@ class Screenshot < ActiveRecord::Base has_attached_file :image, styles: { :large => '800x600>', :thumb => '160x120>' }, default_url: '/images/dummy/no-screenshots-upload-one.svg', - #path: ':rails_root/public/system/:class/:attachment/:id_partition/:style/:filename', path: ':rails_root/public/screenshots/:id_partition/:style.png', - url: '/screenshots/:id_partition/:style.png', - # TODO: Make hash_secret configurable in the main configuration. - # Do not check it into Git. - hash_secret: 'M4xGM9v6y17Y27sZ1liWrnQaXdX4YDdZCJ7fOqcAUg3cZJqK9x' + url: '/screenshots/:id_partition/:style.png' validates_attachment_content_type :image, :content_type => /\Aimage\/png\Z/ # Return caption for full-screen screenshots.