Permalink
Browse files

replace #flatten with Array()

  • Loading branch information...
goshakkk committed Jan 2, 2013
1 parent fb61a80 commit 7c1af53b1cddc35de5a2e0788d7a2073365458f3
Showing with 2 additions and 2 deletions.
  1. +2 −2 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)

0 comments on commit 7c1af53

Please sign in to comment.