Module: MrMime::Config
- Defined in:
- lib/mr_mime/config.rb
Constant Summary collapse
- @@adapter =
:devise
- @@user_model =
'User'
- @@user_permission_check =
nil
- @@after_impersonation_url =
:root_url
Class Method Summary collapse
Class Method Details
.adapter_class ⇒ Object
22 23 24 |
# File 'lib/mr_mime/config.rb', line 22 def self.adapter_class @@adapter_class ||= adapters[@@adapter] end |
.adapters ⇒ Object
15 16 17 18 19 20 |
# File 'lib/mr_mime/config.rb', line 15 def self.adapters { sorcery: MrMime::Adapters::SorceryAdapter, devise: MrMime::Adapters::DeviseAdapter } end |
.user_class ⇒ Object
26 27 28 |
# File 'lib/mr_mime/config.rb', line 26 def self.user_class @@user_class ||= user_model.constantize end |