From da54738e9145e89f44d6a130b5eb4b53af357552 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Wed, 27 Dec 2023 15:43:12 +0000 Subject: [PATCH] Merge r22569 from trunk to 5.1-stable (#39862). git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@22570 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb b/lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb index 9c09a7870..43efe8cd3 100644 --- a/lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb +++ b/lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb @@ -39,7 +39,7 @@ module Redmine end def param_expression - @param_expression ||= Regexp.new("^(#{object_types.join("|")})$") + @param_expression ||= Regexp.new("^(#{object_types.to_a.join("|")})$") end end end -- 2.39.5