mirror of
https://github.com/redmine/redmine.git
synced 2025-11-03 03:46:19 +01:00
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:
@@ -39,7 +39,7 @@ module Redmine
|
|||||||
end
|
end
|
||||||
|
|
||||||
def param_expression
|
def param_expression
|
||||||
@param_expression ||= Regexp.new("^(#{object_types.join("|")})$")
|
@param_expression ||= Regexp.new("^(#{object_types.to_a.join("|")})$")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user