Skip to content

Commit

Permalink
document the Rails::ConsoleMethods#helper and #controller methods
Browse files Browse the repository at this point in the history
Closes #11362
  • Loading branch information
dmathieu committed Jul 18, 2013
1 parent ec17fca commit 3c6767c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 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
Expand Down

0 comments on commit 3c6767c

Please sign in to comment.