From 9fc459b94c8529336597444f2f838c90c2abbc0b Mon Sep 17 00:00:00 2001 From: Andrew Poland Date: Mon, 13 May 2024 13:42:30 -0400 Subject: [PATCH] add recaptcha to job post request form --- .rubocop.yml | 5 ++++- app/controllers/job_post_requests_controller.rb | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index c247528..68069c4 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -16,4 +16,7 @@ AllCops: - 'vendor/**/*' Style/StringLiterals: - EnforcedStyle: double_quotes \ No newline at end of file + EnforcedStyle: double_quotes + +Metrics/MethodLength: + Max: 100 \ No newline at end of file diff --git a/app/controllers/job_post_requests_controller.rb b/app/controllers/job_post_requests_controller.rb index b30fa1e..f82b257 100644 --- a/app/controllers/job_post_requests_controller.rb +++ b/app/controllers/job_post_requests_controller.rb @@ -18,7 +18,9 @@ def create SystemMailer.job_post_request(@job_post_request, @job).deliver_now redirect_to new_job_post_request_path, notice: "Your job post request was sent successfully!" else - flash[:notice] = "There was a problem with sending your job post request. Verify all fields are present and the reCAPTCHA is checked." + flash[:notice] = + "There was a problem with sending your job post request. "\ + "Verify all fields are present and the reCAPTCHA is checked." render :new end end