X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/461f99dfe03ed0dfea2d973378e0ace70134c199..b7432e943222d5499d135afb4f6431ed4c3c988d:/app/models/user.rb diff --git a/app/models/user.rb b/app/models/user.rb index 609982389..92fb3287b 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -46,8 +46,6 @@ class User < ApplicationRecord require "xml/libxml" - self.ignored_columns = ["nearby"] - has_many :traces, -> { where(:visible => true) } has_many :diary_entries, -> { order(:created_at => :desc) } has_many :diary_comments, -> { order(:created_at => :desc) } @@ -220,7 +218,7 @@ class User < ApplicationRecord end def is_friends_with?(new_friend) - friendships.where(:befriendee => new_friend).exists? + friendships.exists?(:befriendee => new_friend) end ##