title: using helper_method AbstractController::Helpers::ClassMethods in a model
body: <p>In my <strong>application controller</strong> I have the following code:</p>
  
  <pre><code>helper_method :current_user
  
  
  def current_user
    @current_user ||= User.find(session[:user]) if session[:user] 
  end
  </code></pre>
  
  <p>I would like to use the "current_user" method in a model.  According to the rails API the helper method can be accessed at "AbstractController::Helpers::ClassMethods".<br>
  See link:</p>
  
  <p><a href="http://api.rubyonrails.org/classes/AbstractController/Helpers/ClassMethods.html" rel="nofollow">http://api.rubyonrails.org/classes/AbstractController/Helpers/ClassMethods.html</a></p>
  
  <p>When I add this to my model I get a method not found error: </p>
  
  <pre><code>include AbstractController::Helpers::ClassMethods 
  </code></pre>
  
  <p>Am I missing something in how to include these helper methods?</p>
  
  <p>Thanks!</p>