From 41c2c6071a21e02d63a25597429b85644d2158ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Tue, 9 Apr 2024 12:50:00 +0800 Subject: [PATCH] fix error after update carrierwave --- app/controllers/admin/galleries_controller.rb | 2 +- app/controllers/galleries_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/admin/galleries_controller.rb b/app/controllers/admin/galleries_controller.rb index 333458e..f91d34f 100644 --- a/app/controllers/admin/galleries_controller.rb +++ b/app/controllers/admin/galleries_controller.rb @@ -500,7 +500,7 @@ class Admin::GalleriesController < OrbitAdminController theater_link: admin_image_path(values), description: values.description, title: values.title, - file: values.file.as_json[:file], + file: values.file.as_json, gallery_album_id: values.album_id, order: values.order, tags: values.tags} diff --git a/app/controllers/galleries_controller.rb b/app/controllers/galleries_controller.rb index 6b2ae9e..98c7316 100644 --- a/app/controllers/galleries_controller.rb +++ b/app/controllers/galleries_controller.rb @@ -221,7 +221,7 @@ class GalleriesController < ApplicationController title: values.title, alt_title: alt_text, url: values.file.url, - file: values.file.as_json[:file], + file: values.file.as_json, gallery_album_id: values.album_id, tags: values.tags} end