diff options
author | Akira Matsuda <ronnie@dio.jp> | 2011-11-10 06:47:35 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2011-11-10 06:59:55 +0900 |
commit | a658fd2ffa2fd2019696ddd10b12aa5490b1668e (patch) | |
tree | a1334bae95b4791bd99eddc82ce81f102ff1eb98 /railties/lib/rails/commands | |
parent | f686d9429fc964ca7ef0c7a8246ac25fd861a05b (diff) | |
download | rails-a658fd2ffa2fd2019696ddd10b12aa5490b1668e.tar.gz rails-a658fd2ffa2fd2019696ddd10b12aa5490b1668e.tar.bz2 rails-a658fd2ffa2fd2019696ddd10b12aa5490b1668e.zip |
Extend IRB right before starting IRB to remove dependency on IRB from Rails::Application
Diffstat (limited to 'railties/lib/rails/commands')
-rw-r--r-- | railties/lib/rails/commands/console.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/rails/commands/console.rb b/railties/lib/rails/commands/console.rb index 32e361d421..7733a8f116 100644 --- a/railties/lib/rails/commands/console.rb +++ b/railties/lib/rails/commands/console.rb @@ -42,6 +42,8 @@ module Rails else puts "Loading #{Rails.env} environment (Rails #{Rails.version})" end + + IRB::ExtendCommandBundle.send :include, Rails::ConsoleMethods IRB.start end end |