diff options
author | Erik Michaels-Ober <sferik@gmail.com> | 2014-03-03 19:23:29 -0800 |
---|---|---|
committer | Erik Michaels-Ober <sferik@gmail.com> | 2014-03-04 09:13:44 -0800 |
commit | cff340f1eda96be952437abeed80591a85ef0194 (patch) | |
tree | 039fcb81d0437cdb77f7c197fea068a36a19f965 /railties/lib/rails/commands | |
parent | 3413b88a3d6b2b022dfb57e42565446b1e024314 (diff) | |
download | rails-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.rb | 2 |
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 |