From f337e5580b3445e86e16020f5e72b64aa2b3cf31 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 2 Oct 2020 15:01:02 +0800 Subject: [PATCH] change thumb image to mobile size --- app/controllers/spaces_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/spaces_controller.rb b/app/controllers/spaces_controller.rb index 945ccbd..c8508c5 100644 --- a/app/controllers/spaces_controller.rb +++ b/app/controllers/spaces_controller.rb @@ -118,7 +118,7 @@ class SpacesController < ApplicationController images = [] unit.floor_sub_unit_images.each do |image| images << { - "image-thumb-url" => image.image.thumb.url, + "image-thumb-url" => image.image.mobile.url, "image-url" => image.image.url, "alt-image" => unit.title }