aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2013-07-21 18:08:43 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2013-07-21 18:08:43 +0530
commit3613235cc3d7d87ce02e51a80f67706c0853b524 (patch)
tree0385563aabc4df9f2435b1ca08d68b88888eef7d /railties/lib
parent9dc8aef084fc5ae7e3a396dd098d89da93d06fda (diff)
parent760662de868c0311f2e40a5e6f8982a521a3d990 (diff)
downloadrails-3613235cc3d7d87ce02e51a80f67706c0853b524.tar.gz
rails-3613235cc3d7d87ce02e51a80f67706c0853b524.tar.bz2
rails-3613235cc3d7d87ce02e51a80f67706c0853b524.zip
Merge branch 'master' of github.com:rails/docrails
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/console/helpers.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/lib/rails/console/helpers.rb b/railties/lib/rails/console/helpers.rb
index 230d3d9d04..b775f1ff8d 100644
--- a/railties/lib/rails/console/helpers.rb
+++ b/railties/lib/rails/console/helpers.rb
@@ -1,9 +1,15 @@
module Rails
module ConsoleMethods
+ # Gets the helper methods available to the controller.
+ #
+ # This method assumes an +ApplicationController+ exists, and it extends +ActionController::Base+
def helper
@helper ||= ApplicationController.helpers
end
+ # Gets a new instance of a controller object.
+ #
+ # This method assumes an +ApplicationController+ exists, and it extends +ActionController::Base+
def controller
@controller ||= ApplicationController.new
end