Module: Sinatra::SimpleAuthentication::Models::ActiveRecord::Adapter

Included in:
ArUser
Defined in:
lib/sinatra/simple_authentication/models/active_record/adapter.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.model_classObject

Returns the value of attribute model_class.



10
11
12
# File 'lib/sinatra/simple_authentication/models/active_record/adapter.rb', line 10

def model_class
  @model_class
end

Class Method Details

.included(base) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/sinatra/simple_authentication/models/active_record/adapter.rb', line 12

def self.included(base)
  self.model_class = base
  base.extend ClassMethods
  base.class_eval do
    include InstanceMethods
  end
end