title: Rails: Scope: making a method available to all Views and Controllers
body: <p>I've struggled with scope for a few days. I would like to have a small number of methods available to ALL Views and Controllers.
  Suppose the code is:</p>
  
  <pre><code>def login_role
    if current_user
      return current_user.role
    end
    return nil
  end
  </code></pre>
  
  <p>If I include it in application_helper.rb, then it's only available to all Views, but not available to all Controllers</p>
  
  <p>If I include it in application_controller.rb, then it's available to all Controllers, but not available to all Views.</p>