Module: Facebook::Auth::Devise
- Defined in:
- lib/facebook/auth/devise.rb
Instance Method Summary collapse
-
#create ⇒ Object
based on OmniAuth 2 railscast.
- #destroy ⇒ Object
- #index ⇒ Object
Instance Method Details
#create ⇒ Object
based on OmniAuth 2 railscast
13 14 15 |
# File 'lib/facebook/auth/devise.rb', line 13 def create authentication ? authenticated : try_authenticate_user end |
#destroy ⇒ Object
17 18 19 20 |
# File 'lib/facebook/auth/devise.rb', line 17 def destroy current_user_authentication.destroy user_authentication_destroyed end |
#index ⇒ Object
8 9 10 |
# File 'lib/facebook/auth/devise.rb', line 8 def index @authentications = current_user.authentications if current_user end |