Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> This commit refactors the entire application to replace the 'parties' concept with 'events'. All controllers, models, views, and related files have been updated to reflect this change. The parties table has been replaced with an events table, and all related functionality has been updated accordingly.
31 lines
677 B
Ruby
Executable File
31 lines
677 B
Ruby
Executable File
# frozen_string_literal: true
|
|
|
|
class Authentications::OmniauthCallbacksController < Devise::OmniauthCallbacksController
|
|
# You should configure your model like this:
|
|
# devise :omniauthable, omniauth_providers: [:twitter]
|
|
|
|
# You should also create an action method in this controller like this:
|
|
# def twitter
|
|
# end
|
|
|
|
# More info at:
|
|
# https://github.com/heartcombo/devise#omniauth
|
|
|
|
# GET|POST /resource/auth/twitter
|
|
# def passthru
|
|
# super
|
|
# end
|
|
|
|
# GET|POST /users/auth/twitter/callback
|
|
# def failure
|
|
# super
|
|
# end
|
|
|
|
# protected
|
|
|
|
# The path used when OmniAuth fails
|
|
# def after_omniauth_failure_path_for(scope)
|
|
# super(scope)
|
|
# end
|
|
end
|