aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-01-02 07:10:43 -0800
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-01-02 07:10:43 -0800
commitf83b6ed983dd06f367d0b9ad60debabf0c757656 (patch)
tree33154978394e86e9506fdb83b77239e3fc268574 /railties/lib
parent08db381d15ce37c54bd0f23a6a63eaeda1c1d6f3 (diff)
parent7c1af53b1cddc35de5a2e0788d7a2073365458f3 (diff)
downloadrails-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.rb4
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)