lib/rails/commands/console.rb in railties-3.0.0.beta4 vs lib/rails/commands/console.rb in railties-3.0.0.rc

- old
+ new

@@ -21,13 +21,10 @@ opt.on("--debugger", 'Enable ruby-debugging for the console.') { |v| options[:debugger] = v } opt.on('--irb', "DEPRECATED: Invoke `/your/choice/of/ruby script/rails console` instead") { |v| abort '--irb option is no longer supported. Invoke `/your/choice/of/ruby script/rails console` instead' } opt.parse!(ARGV) end - @app.initialize! - require "rails/console/app" - require "rails/console/sandbox" if options[:sandbox] - require "rails/console/helpers" + @app.load_console(options[:sandbox]) if options[:debugger] begin require 'ruby-debug' puts "=> Debugger enabled"