diff options
author | Damien Mathieu <42@dmathieu.com> | 2013-07-18 16:18:04 +0200 |
---|---|---|
committer | Damien Mathieu <42@dmathieu.com> | 2013-07-18 16:18:07 +0200 |
commit | 3c6767cadedce64119ceef25ce97a03784ebd41f (patch) | |
tree | e6b725ab17c1b3d384a815855a4aea8b2a2f42f2 /railties | |
parent | ec17fca48fb6983af33fec3c0e1b0db2fdf6e3c6 (diff) | |
download | rails-3c6767cadedce64119ceef25ce97a03784ebd41f.tar.gz rails-3c6767cadedce64119ceef25ce97a03784ebd41f.tar.bz2 rails-3c6767cadedce64119ceef25ce97a03784ebd41f.zip |
document the Rails::ConsoleMethods#helper and #controller methods
Closes rails/rails#11362
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/console/helpers.rb | 6 |
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 |