]> git.openstreetmap.org Git - rails.git/blob - app/controllers/profiles/locations_controller.rb
Fix header button height
[rails.git] / app / controllers / profiles / locations_controller.rb
1 # frozen_string_literal: true
2
3 module Profiles
4   class LocationsController < ProfileSectionsController
5     before_action :update_totp, :only => [:show]
6
7     def show; end
8
9     private
10
11     def update_profile
12       current_user.home_lat = params[:user][:home_lat]
13       current_user.home_lon = params[:user][:home_lon]
14       current_user.home_location_name = params[:user][:home_location_name]
15
16       current_user.save
17     end
18   end
19 end