aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands
diff options
context:
space:
mode:
authorErik Michaels-Ober <sferik@gmail.com>2014-03-03 19:23:29 -0800
committerErik Michaels-Ober <sferik@gmail.com>2014-03-04 09:13:44 -0800
commitcff340f1eda96be952437abeed80591a85ef0194 (patch)
tree039fcb81d0437cdb77f7c197fea068a36a19f965 /railties/lib/rails/commands
parent3413b88a3d6b2b022dfb57e42565446b1e024314 (diff)
downloadrails-cff340f1eda96be952437abeed80591a85ef0194.tar.gz
rails-cff340f1eda96be952437abeed80591a85ef0194.tar.bz2
rails-cff340f1eda96be952437abeed80591a85ef0194.zip
Replace map.flatten with flat_map in railties
Diffstat (limited to 'railties/lib/rails/commands')
-rw-r--r--railties/lib/rails/commands/plugin.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/plugin.rb b/railties/lib/rails/commands/plugin.rb
index f7a0b99005..95bbdd4cdf 100644
--- a/railties/lib/rails/commands/plugin.rb
+++ b/railties/lib/rails/commands/plugin.rb
@@ -11,7 +11,7 @@ else
end
if File.exist?(railsrc)
extra_args_string = File.read(railsrc)
- extra_args = extra_args_string.split(/\n+/).map {|l| l.split}.flatten
+ extra_args = extra_args_string.split(/\n+/).flat_map {|l| l.split}
puts "Using #{extra_args.join(" ")} from #{railsrc}"
ARGV.insert(1, *extra_args)
end