Skip to content

Commit

Permalink
fix load order of console sandbox. rails#9513
Browse files Browse the repository at this point in the history
  • Loading branch information
senny committed Mar 2, 2013
1 parent c09f934 commit 727277f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/commands/console.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def available_environments
def initialize(app, options={}) def initialize(app, options={})
@app = app @app = app
@options = options @options = options
app.sandbox = sandbox?
app.load_console app.load_console
@console = app.config.console || IRB @console = app.config.console || IRB
end end
Expand All @@ -71,7 +72,6 @@ def debugger?
end end


def start def start
app.sandbox = sandbox?
require_debugger if debugger? require_debugger if debugger?
set_environment! if environment? set_environment! if environment?


Expand Down

0 comments on commit 727277f

Please sign in to comment.