Module: Lolita::ControllerAdditions

Included in:
RestController
Defined in:
lib/lolita/controller_additions.rb

Overview

Basic module for custom Lolita controllers. Is used in Lolita::RestController.

Class Method Summary collapse

Class Method Details

.included(base_class) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/lolita/controller_additions.rb', line 5

def self.included(base_class)
  base_class.class_eval do 
    include Lolita::Controllers::InternalHelpers
    include Lolita::Controllers::AuthenticationHelpers
    if Lolita.rails?
      include Lolita::Controllers::RailsHelpers
    end
    attr_accessor :current_ability
  end
end