X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/cd9a72e6699f4cd4ec997c889a1acc5ff3475e2a..d797de431716252ac03ad390b3233c91fa3c50b2:/app/models/user.rb?ds=sidebyside 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)