Class: Ibrain::SocialCallbacksController
- Inherits:
-
Devise::OmniauthCallbacksController
- Object
- Devise::OmniauthCallbacksController
- Ibrain::SocialCallbacksController
- Includes:
- ActionController::Helpers, ActionController::MimeResponds, Core::ControllerHelpers::Response
- Defined in:
- app/controllers/ibrain/social_callbacks_controller.rb
Instance Method Summary collapse
- #apple ⇒ Object
- #create ⇒ Object
- #facebook ⇒ Object
- #google_oauth2 ⇒ Object
- #instagram ⇒ Object
- #line ⇒ Object
- #new_user_session(*args) ⇒ Object
- #twitter ⇒ Object
Instance Method Details
#apple ⇒ Object
24 25 26 |
# File 'app/controllers/ibrain/social_callbacks_controller.rb', line 24 def apple generic_callback( 'apple' ) end |
#create ⇒ Object
32 33 34 35 36 |
# File 'app/controllers/ibrain/social_callbacks_controller.rb', line 32 def create user = line_repo.find_or_initialize! render_json_ok(user, nil) end |
#facebook ⇒ Object
12 13 14 |
# File 'app/controllers/ibrain/social_callbacks_controller.rb', line 12 def facebook generic_callback( 'facebook' ) end |
#google_oauth2 ⇒ Object
20 21 22 |
# File 'app/controllers/ibrain/social_callbacks_controller.rb', line 20 def google_oauth2 generic_callback( 'google_oauth2' ) end |
#instagram ⇒ Object
8 9 10 |
# File 'app/controllers/ibrain/social_callbacks_controller.rb', line 8 def instagram generic_callback( 'instagram' ) end |
#line ⇒ Object
28 29 30 |
# File 'app/controllers/ibrain/social_callbacks_controller.rb', line 28 def line generic_callback( 'line' ) end |
#new_user_session(*args) ⇒ Object
38 39 40 |
# File 'app/controllers/ibrain/social_callbacks_controller.rb', line 38 def new_user_session(*args) new_session(*args) end |
#twitter ⇒ Object
16 17 18 |
# File 'app/controllers/ibrain/social_callbacks_controller.rb', line 16 def twitter generic_callback( 'twitter' ) end |