Module: DoubleAuthEngine::UserSessionsControllerMixin

Included in:
UserSessionsController
Defined in:
lib/double_auth_engine/controllers/user_sessions_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/user_sessions_controller_mixin.rb', line 3

def self.included(base)
  base.class_eval do
    skip_before_filter :require_user, :only => [:new, :create]
    respond_to :html, :json, :js
  end
  base.send :include, InstanceMethods
end