aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/console/helpers.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-11-09 02:14:50 -0800
committerJosé Valim <jose.valim@gmail.com>2011-11-09 02:14:50 -0800
commit4857339aab4f725639347c55e56a75012bb81411 (patch)
tree217083c728bfecf05f8f3db8132d3a20cfa7aa5e /railties/lib/rails/console/helpers.rb
parentfba28ece7e17efb6e5f8ebea672991952660c321 (diff)
parent6d09f275c6e3224a8ea9a738512c90ee5334e20d (diff)
downloadrails-4857339aab4f725639347c55e56a75012bb81411.tar.gz
rails-4857339aab4f725639347c55e56a75012bb81411.tar.bz2
rails-4857339aab4f725639347c55e56a75012bb81411.zip
Merge pull request #3509 from amatsuda/console_extend_command_bundle
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.rb14
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..230d3d9d04 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 Rails
+ module ConsoleMethods
+ def helper
+ @helper ||= ApplicationController.helpers
+ end
-def controller
- @controller ||= ApplicationController.new
+ def controller
+ @controller ||= ApplicationController.new
+ end
+ end
end