瀏覽代碼

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
pull/145/merge
Marius Balteanu 5 月之前
父節點
當前提交
a6a02971b1
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb

+ 1
- 1
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

Loading…
取消
儲存