Fix all Style/UnneededInterpolation rubocop issues and remove from rubocop_tod

This commit is contained in:
Bertocq
2017-07-04 22:44:08 +02:00
parent 9f38192e13
commit 28970c6701
11 changed files with 37 additions and 50 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