Merge pull request #1722 from consul/chore/rubocop_cleaning

Rubocop cleaning
This commit is contained in:
BertoCQ
2017-07-05 13:12:09 +02:00
committed by GitHub
53 changed files with 145 additions and 176 deletions

View File

@@ -33,7 +33,7 @@ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
if save_user
identity.update(user: @user)
sign_in_and_redirect @user, event: :authentication
set_flash_message(:notice, :success, kind: "#{provider}".capitalize) if is_navigational_format?
set_flash_message(:notice, :success, kind: provider.to_s.capitalize) if is_navigational_format?
else
session["devise.#{provider}_data"] = auth
redirect_to new_user_registration_url