From a0768d507667d81aa48e1393d93591aa080ecb3a Mon Sep 17 00:00:00 2001 From: manson Date: Fri, 13 Feb 2015 14:57:12 +0800 Subject: [PATCH] fix thumb image --- app/controllers/galleries_controller.rb | 2 +- app/uploaders/gallery_uploader.rb | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/controllers/galleries_controller.rb b/app/controllers/galleries_controller.rb index 62dbf5d..1840757 100644 --- a/app/controllers/galleries_controller.rb +++ b/app/controllers/galleries_controller.rb @@ -24,7 +24,7 @@ class GalleriesController < ApplicationController { "image-description" => a.description, "link_to_show" => "/" + I18n.locale.to_s + params[:url] + "/-" + a.id.to_s + "?method=theater", - "thumb-src" => a.file.thumb_fixed_width.url + "thumb-src" => a.file.thumb.url } end { diff --git a/app/uploaders/gallery_uploader.rb b/app/uploaders/gallery_uploader.rb index 150677b..7b48541 100644 --- a/app/uploaders/gallery_uploader.rb +++ b/app/uploaders/gallery_uploader.rb @@ -50,10 +50,6 @@ class GalleryUploader < CarrierWave::Uploader::Base # end version :thumb do - process :resize_to_fill => [200, 200] - end - - version :thumb_fixed_width do process :resize_to_limit => [200, 0] end