Class: Hitchens::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/hitchens/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#current_abilityObject



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