]> git.openstreetmap.org Git - rails.git/blob - app/controllers/profiles/links_controller.rb
Fix eslint warning
[rails.git] / app / controllers / profiles / links_controller.rb
1 module Profiles
2   class LinksController < ProfileSectionsController
3     private
4
5     def update_profile
6       social_links_params = params.permit(:user => [:social_links_attributes => [:id, :url, :_destroy]])
7       current_user.assign_attributes(social_links_params[:user])
8
9       current_user.save
10     end
11   end
12 end