From 03a8f1088fa3f1c76c5b03722c62255ab8ba4cb6 Mon Sep 17 00:00:00 2001 From: Kyle Wiebers Date: Thu, 25 Jul 2019 10:59:31 -0500 Subject: Update gitlab-styles to add Lint/SafeNavigationWithEmpty --- app/models/concerns/token_authenticatable.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app/models/concerns/token_authenticatable.rb') diff --git a/app/models/concerns/token_authenticatable.rb b/app/models/concerns/token_authenticatable.rb index 1293df571a3..4099039dd96 100644 --- a/app/models/concerns/token_authenticatable.rb +++ b/app/models/concerns/token_authenticatable.rb @@ -3,10 +3,8 @@ module TokenAuthenticatable extend ActiveSupport::Concern - private - class_methods do - private # rubocop:disable Lint/UselessAccessModifier + private def add_authentication_token_field(token_field, options = {}) if token_authenticatable_fields.include?(token_field) -- cgit v1.2.1