aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-01-05 16:26:52 -0800
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-01-05 16:26:52 -0800
commitbdffd1e884593adc40fb30bd7c05661a668fc897 (patch)
treeea042f526542d22e1703ec2e9d2367035300f35d /railties/lib/rails
parent2516a1d5c8d3d1391f56d7e8319b4e6342e6bef2 (diff)
parent732d3507da930c8d21e21d2c87c96594bb1e4d2c (diff)
downloadrails-bdffd1e884593adc40fb30bd7c05661a668fc897.tar.gz
rails-bdffd1e884593adc40fb30bd7c05661a668fc897.tar.bz2
rails-bdffd1e884593adc40fb30bd7c05661a668fc897.zip
Merge pull request #8774 from goshakkk/multiline-block-do-end
Prefer do-end for multiline block [ci skip]
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'