circleci
35 of 49 new or added lines in 5 files covered. (71.43%)
5290 of 5609 relevant lines covered (94.31%)
1489.26 hits per line
1 |
# frozen_string_literal: true
|
|
NEW
|
class ContactController < ApplicationController |
× |
NEW
|
def question |
× |
NEW
|
@form = AskAQuestionForm.new(question_params) |
× |
NEW
|
if @form.valid? && @form.submit |
× |
NEW
|
render partial: "catalog/ask_a_question_form", locals: { form: @form } |
× |
NEW
|
else
|
× |
NEW
|
render partial: "catalog/ask_a_question_form", locals: { form: @form }, status: :unprocessable_entity |
× |
NEW
|
end
|
× |
NEW
|
end
|
× |
11 |
|
|
NEW
|
private |
× |
13 |
|
|
NEW
|
def question_params |
× |
NEW
|
params[:ask_a_question_form].permit!
|
× |
NEW
|
end
|
× |
NEW
|
end
|
× |