diff options
author | Akira Matsuda <ronnie@dio.jp> | 2008-09-09 18:58:34 +0900 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-09-09 10:07:59 -0700 |
commit | 07eb9ffd151b622eccb1dd527455b4f6f10973ff (patch) | |
tree | 8b05b77c7c81daa437dd2828625a777e4a475028 /railties | |
parent | d5893a517ff1dd75bb1ec4c0e7774c9312e5c9c4 (diff) | |
download | rails-07eb9ffd151b622eccb1dd527455b4f6f10973ff.tar.gz rails-07eb9ffd151b622eccb1dd527455b4f6f10973ff.tar.bz2 rails-07eb9ffd151b622eccb1dd527455b4f6f10973ff.zip |
Ruby 1.9 compat: remove constants from block parameters
[#1002 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/commands/process/spawner.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/commands/process/spawner.rb b/railties/lib/commands/process/spawner.rb index dc0008698a..8bf47abb75 100644 --- a/railties/lib/commands/process/spawner.rb +++ b/railties/lib/commands/process/spawner.rb @@ -181,10 +181,10 @@ ARGV.options do |opts| opts.on(" Options:") - opts.on("-p", "--port=number", Integer, "Starting port number (default: #{OPTIONS[:port]})") { |OPTIONS[:port]| } + opts.on("-p", "--port=number", Integer, "Starting port number (default: #{OPTIONS[:port]})") { |v| OPTIONS[:port] = v } if spawner_class.can_bind_to_custom_address? - opts.on("-a", "--address=ip", String, "Bind to IP address (default: #{OPTIONS[:address]})") { |OPTIONS[:address]| } + opts.on("-a", "--address=ip", String, "Bind to IP address (default: #{OPTIONS[:address]})") { |v| OPTIONS[:address] = v } end opts.on("-p", "--port=number", Integer, "Starting port number (default: #{OPTIONS[:port]})") { |v| OPTIONS[:port] = v } |