From 9632aa870a6f3e008c222c382d17a38620d40daf Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Wed, 27 Dec 2023 15:43:33 +0000 Subject: [PATCH] Merge r22569 from trunk to 5.0-stable (#39862). git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22571 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