Module: Sorcery::Model::InstanceMethods
- Defined in:
- lib/sorcery/model.rb
Instance Method Summary collapse
-
#external? ⇒ Boolean
identifies whether this user is regular, i.e.
-
#sorcery_config ⇒ Object
Returns the class instance variable for configuration, when called by an instance.
Instance Method Details
#external? ⇒ Boolean
identifies whether this user is regular, i.e. we hold his credentials in our db, or that he is external, and his credentials are saved elsewhere (twitter/facebook etc.).
114 115 116 |
# File 'lib/sorcery/model.rb', line 114 def external? send(sorcery_config.crypted_password_attribute_name).nil? end |
#sorcery_config ⇒ Object
Returns the class instance variable for configuration, when called by an instance.
108 109 110 |
# File 'lib/sorcery/model.rb', line 108 def sorcery_config self.class.sorcery_config end |