From 5c8b48dfe7315df561fb39b6fff2c97e62d6be06 Mon Sep 17 00:00:00 2001 From: Monica Cellio <cellio@pobox.com> Date: Wed, 29 Jan 2025 21:53:41 -0500 Subject: [PATCH] removed unused method --- app/models/user.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index c7ed17cbf..fb959190f 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,3 +1,4 @@ +# 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 @@ -138,10 +139,6 @@ class User < ApplicationRecord website.nil? ? website : URI.parse(website).hostname end - def all_websites_for - user_websites.order(position: :asc) - end - def valid_websites_for user_websites.where.not(url: [nil, '']).order(position: :asc) end -- GitLab