Fixes exception in @acts_as_attachable@ when running on Ruby 2.7 (#39862).

Patch by @maeda.

git-svn-id: https://svn.redmine.org/redmine/trunk@22569 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2023-12-27 15:40:08 +00:00
parent 8e1319f54e
commit a6a02971b1

View File

@@ -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