]> git.openstreetmap.org Git - rails.git/blob - app/controllers/profiles/locations_controller.rb
Add frozen_string_literal comments to ruby files
[rails.git] / app / controllers / profiles / locations_controller.rb
1 # frozen_string_literal: true
2
3 module Profiles
4   class LocationsController < ProfileSectionsController
5     private
6
7     def update_profile
8       current_user.home_lat = params[:user][:home_lat]
9       current_user.home_lon = params[:user][:home_lon]
10       current_user.home_location_name = params[:user][:home_location_name]
11
12       current_user.save
13     end
14   end
15 end