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

Remove unnecessary begin..rescue..end, use only rescue

This commit is contained in:
Carlos Antonio da Silva 2013-01-04 22:41:36 -02:00
parent 2269f43eb3
commit 28fd867c9b

View file

@ -89,13 +89,11 @@ module Rails
end
def require_debugger
begin
require 'debugger'
puts "=> Debugger enabled"
rescue Exception
puts "You're missing the 'debugger' gem. Add it to your Gemfile, bundle, and try again."
exit
end
require 'debugger'
puts "=> Debugger enabled"
rescue Exception
puts "You're missing the 'debugger' gem. Add it to your Gemfile, bundle, and try again."
exit
end
end
end