Class: Guts::ApplicationController Abstract

Inherits:
ActionController::Base
  • Object
show all
Includes:
MultisiteConcern, SessionConcern
Defined in:
app/controllers/guts/application_controller.rb

Overview

This class is abstract.

Main inherited controller class

Instance Method Summary collapse

Methods included from MultisiteConcern

#current_site, #with_current_site

Instance Method Details

#current_abilityClass

Used by CanCanCan for getting the current abilities of the current user

Returns:

  • (Class)

    the abilities for the current user



19
20
21
# File 'app/controllers/guts/application_controller.rb', line 19

def current_ability
  @current_ability ||= Guts::Ability.new current_user
end