Module: SimpleUserAuth::Controller

Defined in:
lib/simple_user_auth.rb

Defined Under Namespace

Modules: ClassInstanceMethods, ClassMethods

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object

:nodoc:



112
113
114
115
116
117
118
119
120
# File 'lib/simple_user_auth.rb', line 112

def self.included(klass) # :nodoc:
  klass.extend(ClassMethods)
  klass.class_eval do 
    include ClassInstanceMethods
    class_attribute :user_model_for_sign_in
    class_attribute :deny_access_callback
    helper_method :current_user, :signed_in?, :not_signed_in?, :current_user?
  end
end