]> git.openstreetmap.org Git - rails.git/blob - app/controllers/profiles/locations_controller.rb
Merge remote-tracking branch 'upstream/pull/6182'
[rails.git] / app / controllers / profiles / locations_controller.rb
1 module Profiles
2   class LocationsController < ProfileSectionsController
3     private
4
5     def update_profile
6       current_user.home_lat = params[:user][:home_lat]
7       current_user.home_lon = params[:user][:home_lon]
8       current_user.home_location_name = params[:user][:home_location_name]
9
10       current_user.save
11     end
12   end
13 end