Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

replace #flatten with Array()

  • Loading branch information...
commit 7c1af53b1cddc35de5a2e0788d7a2073365458f3 1 parent fb61a80
@goshakkk goshakkk authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails/paths.rb
View
4 railties/lib/rails/paths.rb
@@ -56,8 +56,8 @@ def []=(path, value)
end
def add(path, options={})
- with = options[:with] || path
- @root[path] = Path.new(self, path, [with].flatten, options)
+ with = Array(options[:with] || path)
+ @root[path] = Path.new(self, path, with, options)
end
def [](path)
Please sign in to comment.
Something went wrong with that request. Please try again.