From: Marius Balteanu Date: Wed, 27 Dec 2023 15:43:12 +0000 (+0000) Subject: Merge r22569 from trunk to 5.1-stable (#39862). X-Git-Tag: 5.1.2~26 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=da54738e9145e89f44d6a130b5eb4b53af357552;p=redmine.git 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 --- 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