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.
		
		
		
		
		
			
		
			
				
					
					
						
							23 lines
						
					
					
						
							485 B
						
					
					
				
			
		
		
	
	
							23 lines
						
					
					
						
							485 B
						
					
					
				| # frozen_string_literal: true
 | |
| 
 | |
| class EnquiriesController < ApplicationController
 | |
|   skip_before_action :authenticate_user!
 | |
|   skip_authorization_check
 | |
| 
 | |
|   def create
 | |
|     if params[:talk_to_sales] == 'on'
 | |
|       Faraday.post(Docuseal::ENQUIRIES_URL,
 | |
|                    enquiry_params.merge(type: :talk_to_sales).to_json,
 | |
|                    'Content-Type' => 'application/json')
 | |
|     end
 | |
| 
 | |
|     head :ok
 | |
|   end
 | |
| 
 | |
|   private
 | |
| 
 | |
|   def enquiry_params
 | |
|     params.require(:user).permit(:email)
 | |
|   end
 | |
| end
 |