From 05516a3156dcc21018919d7f6d1fdbcb57886d18 Mon Sep 17 00:00:00 2001 From: Tony Miller Date: Mon, 7 Mar 2016 11:54:20 +0900 Subject: 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. --- actionpack/lib/abstract_controller/helpers.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actionpack/lib/abstract_controller') 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? # -- cgit v1.2.3