mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Convert a lot of :a => b to a: b and bring peace to the world
This commit is contained in:
parent
cb9106c3a7
commit
5dfb04e4b3
62 changed files with 171 additions and 171 deletions
|
@ -14,7 +14,7 @@ class Users::OmniauthCallbacksController < ApplicationController
|
|||
skip_before_filter :check_xhr
|
||||
|
||||
# must be done, cause we may trigger a POST
|
||||
skip_before_filter :verify_authenticity_token, :only => :complete
|
||||
skip_before_filter :verify_authenticity_token, only: :complete
|
||||
|
||||
def complete
|
||||
# Make sure we support that provider
|
||||
|
@ -49,7 +49,7 @@ class Users::OmniauthCallbacksController < ApplicationController
|
|||
twitter_screen_name: screen_name
|
||||
}
|
||||
|
||||
user_info = TwitterUserInfo.where(:twitter_user_id => twitter_user_id).first
|
||||
user_info = TwitterUserInfo.where(twitter_user_id: twitter_user_id).first
|
||||
|
||||
@data = {
|
||||
username: screen_name,
|
||||
|
@ -97,7 +97,7 @@ class Users::OmniauthCallbacksController < ApplicationController
|
|||
email_valid: true
|
||||
}
|
||||
|
||||
user_info = FacebookUserInfo.where(:facebook_user_id => fb_uid ).first
|
||||
user_info = FacebookUserInfo.where(facebook_user_id: fb_uid).first
|
||||
|
||||
@data = {
|
||||
username: username,
|
||||
|
@ -194,7 +194,7 @@ class Users::OmniauthCallbacksController < ApplicationController
|
|||
github_screen_name: screen_name
|
||||
}
|
||||
|
||||
user_info = GithubUserInfo.where(:github_user_id => github_user_id).first
|
||||
user_info = GithubUserInfo.where(github_user_id: github_user_id).first
|
||||
|
||||
@data = {
|
||||
username: screen_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue