diff --git a/app/models/user.rb b/app/models/user.rb index c7ed17cbfc4e046f1e8c5988ebe7f11fb9369379..fb959190f51193bc798116b74b0cb1536f7af029 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