From 9a1533c3cc2b46ba59eeb9f7d9e4e0d3dba494fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Mon, 15 May 2023 12:52:57 +0200 Subject: [PATCH] already initialized constant --- .github/workflows/rubyonrails.yml | 4 ++-- lib/redmine_dmsf/webdav/base_resource.rb | 18 ++++++++---------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/rubyonrails.yml b/.github/workflows/rubyonrails.yml index 77a50cff..19bceda6 100644 --- a/.github/workflows/rubyonrails.yml +++ b/.github/workflows/rubyonrails.yml @@ -160,8 +160,8 @@ jobs: litmus http://localhost:3000/dmsf/webdav/dmsf_test_project admin admin kill `cat tmp/pids/server.pid` bundle exec rake redmine:dmsf_webdav_test_off - env: - TESTS: "basic copymove props" + #env: + # TESTS: "basic copymove props" - name: Cleanup # Rollback plugin's changes to the database # Stop the database engine diff --git a/lib/redmine_dmsf/webdav/base_resource.rb b/lib/redmine_dmsf/webdav/base_resource.rb index 4ec91cfb..63ab20da 100644 --- a/lib/redmine_dmsf/webdav/base_resource.rb +++ b/lib/redmine_dmsf/webdav/base_resource.rb @@ -30,16 +30,14 @@ module RedmineDmsf attr_reader :public_path - unless const_defined?(DIR_FILE) - DIR_FILE = %( - - %s - %s - %s - %s - - ) - end + DIR_FILE = %( + + %s + %s + %s + %s + + ) def initialize(path, request, response, options) raise NotFound if Setting.plugin_redmine_dmsf['dmsf_webdav'].blank?