Module: LoginSystem

Included in:
ApplicationController
Defined in:
lib/login_system.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/login_system.rb', line 2

def self.included(base)
  base.extend ClassMethods
  base.class_eval do
    prepend_before_filter :authenticate, :authorize
    helper_method :current_user
  end
end