lib/rails/commands/console.rb in railties-4.0.0.beta1 vs lib/rails/commands/console.rb in railties-4.0.0.rc1

- old
+ new

@@ -44,11 +44,14 @@ attr_reader :options, :app, :console def initialize(app, options={}) @app = app @options = options + + app.sandbox = sandbox? app.load_console + @console = app.config.console || IRB end def sandbox? options[:sandbox] @@ -69,10 +72,9 @@ def debugger? options[:debugger] end def start - app.sandbox = sandbox? require_debugger if debugger? set_environment! if environment? if sandbox? puts "Loading #{Rails.env} environment in sandbox (Rails #{Rails.version})"