Module: DoubleAuthEngine::ApplicationControllerMixin

Defined in:
lib/double_auth_engine/controllers/application_controller_mixin.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/double_auth_engine/controllers/application_controller_mixin.rb', line 3

def self.included(base)
  base.class_eval do
    before_filter :require_user
    helper_method :current_user_session, :current_user
  end
  base.send :include, InstanceMethods
end