Module: Devise::Models::FacebookOpenGraphAuthenticatable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/devise_facebook_open_graph/model.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#authenticated_via_facebook? ⇒ Boolean
36 37 38 |
# File 'lib/devise_facebook_open_graph/model.rb', line 36 def authenticated_via_facebook? read_attribute(self.class.facebook_uid_field).present? end |
#set_facebook_credentials_from_session! ⇒ Object
30 31 32 33 34 |
# File 'lib/devise_facebook_open_graph/model.rb', line 30 def set_facebook_credentials_from_session! raise "Can't set facebook credentials from session without the session!" if facebook_session.blank? send(self.class.facebook_uid_field.to_s+'=', facebook_session.uid) make_facebook_model_valid! end |