diff options
-rw-r--r-- | lib/plugins/acts_as_attachable/lib/acts_as_attachable.rb | 2 |
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 |