Class: LeveretAuth::Config
- Inherits:
-
Object
- Object
- LeveretAuth::Config
- Defined in:
- lib/leveret_auth/config.rb
Overview
Default DiviseAuth configuration
Defined Under Namespace
Classes: Builder
Instance Method Summary collapse
- #before_user_save ⇒ Object
- #identities_model ⇒ Object
- #providers ⇒ Object
- #user_model ⇒ Object
- #user_model_name ⇒ Object
Instance Method Details
#before_user_save ⇒ Object
45 46 47 |
# File 'lib/leveret_auth/config.rb', line 45 def before_user_save @before_user_save end |
#identities_model ⇒ Object
53 54 55 |
# File 'lib/leveret_auth/config.rb', line 53 def identities_model @identities_model ||= 'LeveretAuth::Identities'.constantize end |
#providers ⇒ Object
37 38 39 |
# File 'lib/leveret_auth/config.rb', line 37 def providers @providers ||= [] end |
#user_model ⇒ Object
49 50 51 |
# File 'lib/leveret_auth/config.rb', line 49 def user_model @user_model ||= user_model_name.constantize end |
#user_model_name ⇒ Object
41 42 43 |
# File 'lib/leveret_auth/config.rb', line 41 def user_model_name @user_model_name.to_s.classify end |