summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2023-12-27 15:43:12 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2023-12-27 15:43:12 +0000
commitda54738e9145e89f44d6a130b5eb4b53af357552 (patch)
treeec032551e3170eea7b01fa5e6f214bd17575111a /lib
parent7f45076752f29230c86f339be73b62e62a9e546f (diff)
downloadredmine-da54738e9145e89f44d6a130b5eb4b53af357552.tar.gz
redmine-da54738e9145e89f44d6a130b5eb4b53af357552.zip
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
Diffstat (limited to 'lib')
-rw-r--r--lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb2
1 files changed, 1 insertions, 1 deletions
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