Modern syntax

This commit is contained in:
Daniel O'Connor
2016-08-22 18:25:57 +09:30
parent 4b7cffad04
commit 20b87e596a

View File

@@ -27,8 +27,8 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController
@authentication = action.establish_authentication(auth, member)
unless action.member_created?
sign_in_and_redirect member, :event => :authentication #this will throw if @user is not activated
set_flash_message(:notice, :success, :kind => auth['provider']) if is_navigational_format?
sign_in_and_redirect member, event: :authentication #this will throw if @user is not activated
set_flash_message(:notice, :success, kind: auth['provider']) if is_navigational_format?
else
session["devise.#{auth['provider']}_data"] = request.env["omniauth.auth"]
sign_in member