diff options
author | Gosha Arinich <me@goshakkk.name> | 2013-01-02 18:03:23 +0300 |
---|---|---|
committer | Gosha Arinich <me@goshakkk.name> | 2013-01-02 18:03:23 +0300 |
commit | 7c1af53b1cddc35de5a2e0788d7a2073365458f3 (patch) | |
tree | ef289bf75fc081ffa2c989b2ac5c002ac789405e /railties/lib/rails | |
parent | fb61a80eae9f83d70c10d558e3047377e560320c (diff) | |
download | rails-7c1af53b1cddc35de5a2e0788d7a2073365458f3.tar.gz rails-7c1af53b1cddc35de5a2e0788d7a2073365458f3.tar.bz2 rails-7c1af53b1cddc35de5a2e0788d7a2073365458f3.zip |
replace #flatten with Array()
Diffstat (limited to 'railties/lib/rails')
-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) |