diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-02 07:10:43 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-02 07:10:43 -0800 |
commit | f83b6ed983dd06f367d0b9ad60debabf0c757656 (patch) | |
tree | 33154978394e86e9506fdb83b77239e3fc268574 /railties/lib | |
parent | 08db381d15ce37c54bd0f23a6a63eaeda1c1d6f3 (diff) | |
parent | 7c1af53b1cddc35de5a2e0788d7a2073365458f3 (diff) | |
download | rails-f83b6ed983dd06f367d0b9ad60debabf0c757656.tar.gz rails-f83b6ed983dd06f367d0b9ad60debabf0c757656.tar.bz2 rails-f83b6ed983dd06f367d0b9ad60debabf0c757656.zip |
Merge pull request #8693 from goshakkk/flatten
Replace #flatten with Array()
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/paths.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/paths.rb b/railties/lib/rails/paths.rb index 8af4130e87..e52d1a8b90 100644 --- a/railties/lib/rails/paths.rb +++ b/railties/lib/rails/paths.rb @@ -56,8 +56,8 @@ module Rails 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) |