docbrown/app/controllers/profiles_controller.rb
Michael Kohl 27faf0a667
Add profiles controller (#10181)
# Conflicts:
#	config/routes.rb
2020-09-04 14:54:39 +02:00

13 lines
267 B
Ruby

class ProfilesController < ApplicationController
before_action :authenticate_user!
def update
Profiles::Update.call(current_user.profile, update_params)
end
private
def update_params
params.require(:profile).permit(*Profile.attributes)
end
end