Skip to content
Snippets Groups Projects
Commit 5c8b48df authored by Monica Cellio's avatar Monica Cellio
Browse files

removed unused method

parent 0169871b
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
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment