aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authorGosha Arinich <me@goshakkk.name>2013-01-06 01:57:03 +0300
committerGosha Arinich <me@goshakkk.name>2013-01-06 02:01:22 +0300
commit732d3507da930c8d21e21d2c87c96594bb1e4d2c (patch)
treeea042f526542d22e1703ec2e9d2367035300f35d /railties/lib/rails
parent2516a1d5c8d3d1391f56d7e8319b4e6342e6bef2 (diff)
downloadrails-732d3507da930c8d21e21d2c87c96594bb1e4d2c.tar.gz
rails-732d3507da930c8d21e21d2c87c96594bb1e4d2c.tar.bz2
rails-732d3507da930c8d21e21d2c87c96594bb1e4d2c.zip
prefer do-end for multiline block
Diffstat (limited to 'railties/lib/rails')
-rw-r--r--railties/lib/rails/commands.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/commands.rb b/railties/lib/rails/commands.rb
index 3ab2a3809e..5ccec8082c 100644
--- a/railties/lib/rails/commands.rb
+++ b/railties/lib/rails/commands.rb
@@ -77,13 +77,13 @@ when 'server'
Dir.chdir(File.expand_path('../../', APP_PATH)) unless File.exists?(File.expand_path("config.ru"))
require 'rails/commands/server'
- Rails::Server.new.tap { |server|
+ Rails::Server.new.tap do |server|
# We need to require application after the server sets environment,
# otherwise the --environment option given to the server won't propagate.
require APP_PATH
Dir.chdir(Rails.application.root)
server.start
- }
+ end
when 'dbconsole'
require 'rails/commands/dbconsole'