# users_home_idx (home_tile)
#
-class User < ActiveRecord::Base
+class User < ApplicationRecord
require "xml/libxml"
has_many :traces, -> { where(:visible => true) }
end
def is_friends_with?(new_friend)
- friendships.where(:befriendee => new_friend).exists?
+ friendships.exists?(:befriendee => new_friend)
end
##