Skip to content

Commit

Permalink
Merge pull request #8693 from goshakkk/flatten
Browse files Browse the repository at this point in the history
Replace #flatten with Array()
  • Loading branch information
rafaelfranca committed Jan 2, 2013
2 parents 08db381 + 7c1af53 commit f83b6ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions railties/lib/rails/paths.rb
Expand Up @@ -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)
Expand Down

0 comments on commit f83b6ed

Please sign in to comment.