Class: Hitchens::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Hitchens::ApplicationController
- Defined in:
- app/controllers/hitchens/application_controller.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#current_ability ⇒ Object
6 7 8 9 |
# File 'app/controllers/hitchens/application_controller.rb', line 6 def current_ability # we need to tell CanCan to use our Hitchens::Ability class @current_ability ||= Ability.new(current_hitchens_user) end |