From 1502526eb228f845b82920fecda113198a7786e4 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Sun, 25 Mar 2018 21:10:46 +0300 Subject: [PATCH] Fix Layout/CommentIndentation --- .rubocop_todo.yml | 5 ----- .../devise_token_auth/omniauth_callbacks_controller.rb | 8 ++++---- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index ba2e44d10..e1c9126f0 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -29,11 +29,6 @@ Layout/AlignParameters: - 'test/dummy/config/initializers/omniauth.rb' - 'test/dummy/config/routes.rb' -# Offense count: 1 -# Cop supports --auto-correct. -Layout/CommentIndentation: - Exclude: - - 'app/controllers/devise_token_auth/omniauth_callbacks_controller.rb' # Offense count: 2 # Cop supports --auto-correct. diff --git a/app/controllers/devise_token_auth/omniauth_callbacks_controller.rb b/app/controllers/devise_token_auth/omniauth_callbacks_controller.rb index 95f3ef2e5..30b2233e8 100644 --- a/app/controllers/devise_token_auth/omniauth_callbacks_controller.rb +++ b/app/controllers/devise_token_auth/omniauth_callbacks_controller.rb @@ -149,10 +149,10 @@ def devise_mapping def set_random_password # set crazy password for new oauth users. this is only used to prevent - # access via email sign-in. - p = SecureRandom.urlsafe_base64(nil, false) - @resource.password = p - @resource.password_confirmation = p + # access via email sign-in. + p = SecureRandom.urlsafe_base64(nil, false) + @resource.password = p + @resource.password_confirmation = p end def create_auth_params