diff options
author | Tony Miller <mcfiredrill@gmail.com> | 2016-03-07 11:54:20 +0900 |
---|---|---|
committer | Tony Miller <mcfiredrill@gmail.com> | 2016-03-07 11:54:20 +0900 |
commit | 05516a3156dcc21018919d7f6d1fdbcb57886d18 (patch) | |
tree | 4f2f5381ad281b13c6b881db8f429a8995ba3fc2 /actionpack/lib | |
parent | 156c2cb571af8c2049e61c50232084a9351f428b (diff) | |
download | rails-05516a3156dcc21018919d7f6d1fdbcb57886d18.tar.gz rails-05516a3156dcc21018919d7f6d1fdbcb57886d18.tar.bz2 rails-05516a3156dcc21018919d7f6d1fdbcb57886d18.zip |
clarify that helper_method makes both methods available in the view
It's probably obvious to most, but clarify that `:helper_method` will make both
of these methods available to the view.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/abstract_controller/helpers.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/abstract_controller/helpers.rb b/actionpack/lib/abstract_controller/helpers.rb index d84c238a62..ab4355296b 100644 --- a/actionpack/lib/abstract_controller/helpers.rb +++ b/actionpack/lib/abstract_controller/helpers.rb @@ -38,7 +38,8 @@ module AbstractController end # Declare a controller method as a helper. For example, the following - # makes the +current_user+ controller method available to the view: + # makes the +current_user+ and +logged_in?+ controller methods available + # to the view: # class ApplicationController < ActionController::Base # helper_method :current_user, :logged_in? # |