Module: LeveretAuth::Orm::ActiveRecord

Defined in:
lib/leveret_auth/orm/active_record.rb

Defined Under Namespace

Modules: Mixins

Class Method Summary collapse

Class Method Details

.modelsObject



17
18
19
20
21
# File 'lib/leveret_auth/orm/active_record.rb', line 17

def self.models
  [
    LeveretAuth.configuration.identities_model
  ]
end

.run_hooksObject



13
14
15
# File 'lib/leveret_auth/orm/active_record.rb', line 13

def self.run_hooks
  models.each(&:establish_connection)
end