From 74926e1b058c212870cec6a50d5aeab871e9b398 Mon Sep 17 00:00:00 2001 From: Oleg Valter <o.a.philippov@gmail.com> Date: Thu, 30 Jan 2025 05:39:27 +0300 Subject: [PATCH] rubocop fix for user model --- app/models/user.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 84021c1d9..c7ed17cbf 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,4 +1,3 @@ -# coding: utf-8 # Represents a user. Most of the User's logic is controlled by Devise and its overrides. A user, as far as the # application code (i.e. excluding Devise) is concerned, has many questions, answers, and votes. class User < ApplicationRecord @@ -144,7 +143,7 @@ class User < ApplicationRecord end def valid_websites_for - user_websites.where.not(url: [nil, ""]).order(position: :asc) + user_websites.where.not(url: [nil, '']).order(position: :asc) end def is_moderator -- GitLab