aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/paths.rb
diff options
context:
space:
mode:
authorGosha Arinich <me@goshakkk.name>2013-01-02 18:03:23 +0300
committerGosha Arinich <me@goshakkk.name>2013-01-02 18:03:23 +0300
commit7c1af53b1cddc35de5a2e0788d7a2073365458f3 (patch)
treeef289bf75fc081ffa2c989b2ac5c002ac789405e /railties/lib/rails/paths.rb
parentfb61a80eae9f83d70c10d558e3047377e560320c (diff)
downloadrails-7c1af53b1cddc35de5a2e0788d7a2073365458f3.tar.gz
rails-7c1af53b1cddc35de5a2e0788d7a2073365458f3.tar.bz2
rails-7c1af53b1cddc35de5a2e0788d7a2073365458f3.zip
replace #flatten with Array()
Diffstat (limited to 'railties/lib/rails/paths.rb')
-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)