diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-01-04 22:41:36 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-01-04 22:49:14 -0200 |
commit | 28fd867c9bc790636d37a28f288791cd0089a6fd (patch) | |
tree | effba8735fba4ece46ef16e8f1311dd223a67c95 /railties/lib/rails | |
parent | 2269f43eb36ceeacf29ab1996ae1d46b344cde86 (diff) | |
download | rails-28fd867c9bc790636d37a28f288791cd0089a6fd.tar.gz rails-28fd867c9bc790636d37a28f288791cd0089a6fd.tar.bz2 rails-28fd867c9bc790636d37a28f288791cd0089a6fd.zip |
Remove unnecessary begin..rescue..end, use only rescue
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/commands/console.rb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/railties/lib/rails/commands/console.rb b/railties/lib/rails/commands/console.rb index 11275d7ea9..78580b220c 100644 --- a/railties/lib/rails/commands/console.rb +++ b/railties/lib/rails/commands/console.rb @@ -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 |