diff options
author | Jon Leighton <j@jonathanleighton.com> | 2013-03-08 13:34:58 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2013-03-08 13:58:56 +0000 |
commit | be3e10cd26bc8ec29c6474d03a08a8e733108e7d (patch) | |
tree | d67ac48af90668003caa2551ba40ed8b94637bf1 /railties/lib/rails | |
parent | ba6b3c165f121d080fe59cf227c9823e0bebc186 (diff) | |
download | rails-be3e10cd26bc8ec29c6474d03a08a8e733108e7d.tar.gz rails-be3e10cd26bc8ec29c6474d03a08a8e733108e7d.tar.bz2 rails-be3e10cd26bc8ec29c6474d03a08a8e733108e7d.zip |
Fix rails console --sandbox
I've also added a proper acceptance test which reproduced the issue.
Closes #9513, #9515.
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/commands/console.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/console.rb b/railties/lib/rails/commands/console.rb index 86ab1aabbf..96229bb4f6 100644 --- a/railties/lib/rails/commands/console.rb +++ b/railties/lib/rails/commands/console.rb @@ -46,7 +46,10 @@ module Rails def initialize(app, options={}) @app = app @options = options + + app.sandbox = sandbox? app.load_console + @console = app.config.console || IRB end @@ -71,7 +74,6 @@ module Rails end def start - app.sandbox = sandbox? require_debugger if debugger? set_environment! if environment? |