remove enquiries_controller

This commit is contained in:
Pete Matsyburka committed 2026-09-25 17:18:29 +03:00
1 parent 887ebbbcf6
commit 20ec614d3a
3 files changed
-24

No files matched your search

-22
View File
@@ -1,22 +0,0 @@
# 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