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:
parent
a1a4957a63
commit
33e52d379e
2 changed files with 5 additions and 2 deletions
|
@ -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*
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue