Permalink
Browse files

fix load order of console sandbox. #9513

  • Loading branch information...
1 parent c09f934 commit 727277f25395ed3447249bbcaa96db0864932a5c @senny committed Mar 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/commands/console.rb
View
2 railties/lib/rails/commands/console.rb
@@ -46,6 +46,7 @@ def available_environments
def initialize(app, options={})
@app = app
@options = options
+ app.sandbox = sandbox?
app.load_console
@console = app.config.console || IRB
end
@@ -71,7 +72,6 @@ def debugger?
end
def start
- app.sandbox = sandbox?
require_debugger if debugger?
set_environment! if environment?

0 comments on commit 727277f

Please sign in to comment.