Permalink
Browse files

Merge pull request #8693 from goshakkk/flatten

Replace #flatten with Array()
  • Loading branch information...
2 parents 08db381 + 7c1af53 commit f83b6ed983dd06f367d0b9ad60debabf0c757656 @rafaelfranca rafaelfranca committed Jan 2, 2013
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 f83b6ed

Please sign in to comment.