Permalink
Browse files

document the Rails::ConsoleMethods#helper and #controller methods

  • Loading branch information...
1 parent ec17fca commit 3c6767cadedce64119ceef25ce97a03784ebd41f @dmathieu dmathieu committed Jul 18, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 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

0 comments on commit 3c6767c

Please sign in to comment.