From c841f4847796d53bdf6fe110e862fe9e6738e5cc Mon Sep 17 00:00:00 2001 From: rulingcom Date: Sat, 1 Jul 2023 11:08:18 +0800 Subject: [PATCH] fix error --- app/controllers/admin/box_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/box_controller.rb b/app/controllers/admin/box_controller.rb index 99b4a30..8a128b3 100644 --- a/app/controllers/admin/box_controller.rb +++ b/app/controllers/admin/box_controller.rb @@ -3,7 +3,7 @@ class Admin::BoxController < OrbitAdminController SocketFile = "#{Rails.root}/tmp/box.sock" Binary = File.expand_path("../../../../bin/box", __FILE__) CSSFile = File.expand_path("../../../../white-on-black.css", __FILE__) - skip_before_filter :verify_authenticity_token + skip_before_action :verify_authenticity_token def index is_not_open = `fuser #{SocketFile}`.gsub(/\n/, '').empty?