Skip to content
Snippets Groups Projects
Commit 74926e1b authored by Oleg Valter's avatar Oleg Valter
Browse files

rubocop fix for user model

parent 981b92e7
No related branches found
No related tags found
No related merge requests found
# 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment