diff options
author | Akira Matsuda <ronnie@dio.jp> | 2013-02-01 22:11:40 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2013-02-01 22:11:40 +0900 |
commit | 9d2187efb7da3c531997eb0261bc39cf48a69821 (patch) | |
tree | 1f5f7ad80a989dfe09a635d944b73b647e61add3 /railties | |
parent | 517cfbe11094582299ed4e185d6c3a4b7a3282ea (diff) | |
download | rails-9d2187efb7da3c531997eb0261bc39cf48a69821.tar.gz rails-9d2187efb7da3c531997eb0261bc39cf48a69821.tar.bz2 rails-9d2187efb7da3c531997eb0261bc39cf48a69821.zip |
Prefer File.read over File.open.read
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/commands/application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/application.rb b/railties/lib/rails/commands/application.rb index b4c7356159..8c1b20571c 100644 --- a/railties/lib/rails/commands/application.rb +++ b/railties/lib/rails/commands/application.rb @@ -12,7 +12,7 @@ else unless ARGV.delete("--no-rc") railsrc = File.join(File.expand_path("~"), ".railsrc") if File.exist?(railsrc) - extra_args_string = File.open(railsrc).read + extra_args_string = File.read(railsrc) extra_args = extra_args_string.split(/\n+/).map {|l| l.split}.flatten puts "Using #{extra_args.join(" ")} from #{railsrc}" ARGV.insert(1, *extra_args) |