From 023b8413e00d6af98c33c931bdc72a06ed6286a6 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:57:21 +0800 Subject: [PATCH] fix error after update carrierwave --- .../app/controllers/admin/custom_galleries_controller.rb | 2 +- custom_gallery/app/controllers/custom_galleries_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_gallery/app/controllers/admin/custom_galleries_controller.rb b/custom_gallery/app/controllers/admin/custom_galleries_controller.rb index 0dfeeac..e37e314 100644 --- a/custom_gallery/app/controllers/admin/custom_galleries_controller.rb +++ b/custom_gallery/app/controllers/admin/custom_galleries_controller.rb @@ -502,7 +502,7 @@ class Admin::CustomGalleriesController < OrbitAdminController theater_link: admin_image_path(values), description: values.description, title: values.title, - file: values.file.as_json[:file], + file: values.file.as_json, custom_gallery_custom_album_id: values.custom_album_id, order: values.order, tags: values.tags} diff --git a/custom_gallery/app/controllers/custom_galleries_controller.rb b/custom_gallery/app/controllers/custom_galleries_controller.rb index 64ea006..07566db 100644 --- a/custom_gallery/app/controllers/custom_galleries_controller.rb +++ b/custom_gallery/app/controllers/custom_galleries_controller.rb @@ -242,7 +242,7 @@ class CustomGalleriesController < ApplicationController title: values.title, alt_title: alt_text, url: values.file.url, - file: values.file.as_json[:file], + file: values.file.as_json, custom_gallery_custom_album_id: values.custom_album_id, tags: values.tags} end