Class: LeveretAuth::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/leveret_auth/config.rb

Overview

Default DiviseAuth configuration

Defined Under Namespace

Classes: Builder

Instance Method Summary collapse

Instance Method Details

#before_user_saveObject



45
46
47
# File 'lib/leveret_auth/config.rb', line 45

def before_user_save
  @before_user_save
end

#identities_modelObject



53
54
55
# File 'lib/leveret_auth/config.rb', line 53

def identities_model
  @identities_model ||= 'LeveretAuth::Identities'.constantize
end

#providersObject



37
38
39
# File 'lib/leveret_auth/config.rb', line 37

def providers
  @providers ||= []
end

#user_modelObject



49
50
51
# File 'lib/leveret_auth/config.rb', line 49

def user_model
  @user_model ||= user_model_name.constantize
end

#user_model_nameObject



41
42
43
# File 'lib/leveret_auth/config.rb', line 41

def user_model_name
  @user_model_name.to_s.classify
end