1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Explicit options should have precedence over railsrc on the rails new

command

Closes #8545
This commit is contained in:
Rafael Mendonça França 2012-12-23 23:56:43 -03:00
parent a1a4957a63
commit 33e52d379e
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,9 @@
## Rails 4.0.0 (unreleased) ##
* Explicit options have precedence over `~/.railsrc` on the `rails new` command.
*Rafael Mendonça França*
* Generated migrations now always use the `change` method.
*Marc-André Lafortune*

View file

@ -14,8 +14,7 @@ else
extra_args_string = File.open(railsrc).read
extra_args = extra_args_string.split(/\n+/).map {|l| l.split}.flatten
puts "Using #{extra_args.join(" ")} from #{railsrc}"
ARGV << extra_args
ARGV.flatten!
ARGV.insert(1, *extra_args)
end
end