aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/console/helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/rails/console/helpers.rb')
-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..efc27953e5 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