X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/191d7f371031cec6a1b83157d3e9f17dee787075..d8d1ab17764e5e0a7af99248cb5047d2af99d534:/app/models/user.rb diff --git a/app/models/user.rb b/app/models/user.rb index cca894a6b..8b8f31676 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -118,7 +118,6 @@ class User < ApplicationRecord before_save :encrypt_password before_save :update_tile after_save :spam_check - after_save :reset_preferred_languages def to_param display_name @@ -179,10 +178,6 @@ class User < ApplicationRecord @preferred_languages ||= Locale.list(languages) end - def reset_preferred_languages - @preferred_languages = nil - end - def nearby(radius = Settings.nearby_radius, num = Settings.nearby_users) if home_lon && home_lat gc = OSM::GreatCircle.new(home_lat, home_lon)