diff options
author | Akira Matsuda <ronnie@dio.jp> | 2011-11-04 04:50:53 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2011-11-04 05:31:47 +0900 |
commit | 7102a3d7fc55067b6cda1a7eeb3b3452050d9b6b (patch) | |
tree | 2a6e483e86974035dfdd6caacbb69201fad495f3 /railties/lib/rails/console/helpers.rb | |
parent | b5f908a7ad515215f164e306f82c3e6c506182cb (diff) | |
download | rails-7102a3d7fc55067b6cda1a7eeb3b3452050d9b6b.tar.gz rails-7102a3d7fc55067b6cda1a7eeb3b3452050d9b6b.tar.bz2 rails-7102a3d7fc55067b6cda1a7eeb3b3452050d9b6b.zip |
move Rails console top level methods to IRB context
Diffstat (limited to 'railties/lib/rails/console/helpers.rb')
-rw-r--r-- | railties/lib/rails/console/helpers.rb | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/railties/lib/rails/console/helpers.rb b/railties/lib/rails/console/helpers.rb index 212fc6125a..070d3c2bbf 100644 --- a/railties/lib/rails/console/helpers.rb +++ b/railties/lib/rails/console/helpers.rb @@ -1,7 +1,11 @@ -def helper - @helper ||= ApplicationController.helpers -end +module IRB + module ExtendCommandBundle + def helper + @helper ||= ApplicationController.helpers + end -def controller - @controller ||= ApplicationController.new + def controller + @controller ||= ApplicationController.new + end + end end |