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.
		
		
		
		
		
			
		
			
				
					
					
						
							20 lines
						
					
					
						
							487 B
						
					
					
				
			
		
		
	
	
							20 lines
						
					
					
						
							487 B
						
					
					
				| class Admins::LaboratorySettingsController < Admins::BaseController
 | |
|   def show
 | |
|     @laboratory = current_laboratory
 | |
|   end
 | |
| 
 | |
|   def update
 | |
|     Admins::SaveLaboratorySettingService.call(current_laboratory, form_params)
 | |
|     render_ok
 | |
|   end
 | |
| 
 | |
|   private
 | |
| 
 | |
|   def current_laboratory
 | |
|     @_current_laboratory ||= Laboratory.find(params[:laboratory_id])
 | |
|   end
 | |
| 
 | |
|   def form_params
 | |
|     params.permit(:identifier, :name, :nav_logo, :login_logo, :tab_logo, :footer, navbar: %i[name link hidden])
 | |
|   end
 | |
| end |