mirror of https://github.com/docusealco/docuseal
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							24 lines
						
					
					
						
							403 B
						
					
					
				
			
		
		
	
	
							24 lines
						
					
					
						
							403 B
						
					
					
				| # frozen_string_literal: true
 | |
| 
 | |
| class ProfileController < ApplicationController
 | |
|   def index
 | |
|     @user = current_user
 | |
|   end
 | |
| 
 | |
|   def update
 | |
|     @user = current_user
 | |
| 
 | |
|     if @user.update(user_params)
 | |
|       redirect_to settings_profile_path, notice: 'Profile updated'
 | |
|     else
 | |
|       render :index
 | |
|     end
 | |
|   end
 | |
| 
 | |
|   private
 | |
| 
 | |
|   def user_params
 | |
|     params.require(:user).permit(:first_name, :last_name)
 | |
|   end
 | |
| end
 |