Require code of conduct acceptance on registration
This commit is contained in:
parent
95196c7f80
commit
03ef28e74d
9 changed files with 91 additions and 8 deletions
|
|
@ -12,6 +12,7 @@ module Admin
|
|||
|
||||
@registration_distribution = @conference.registration_distribution
|
||||
@affiliation_distribution = @conference.affiliation_distribution
|
||||
@code_of_conduct = @conference.code_of_conduct.present?
|
||||
end
|
||||
|
||||
def edit; end
|
||||
|
|
@ -61,9 +62,11 @@ module Admin
|
|||
end
|
||||
|
||||
def registration_params
|
||||
params.require(:registration).permit(:user_id, :conference_id, :arrival, :departure, :attended,
|
||||
:volunteer, :other_special_needs,
|
||||
vchoice_ids: [], qanswer_ids: [], qanswers_attributes: [], event_ids: [])
|
||||
params.require(:registration).permit(
|
||||
:user_id, :conference_id, :arrival, :departure, :attended,
|
||||
:volunteer, :other_special_needs, :accepted_code_of_conduct,
|
||||
vchoice_ids: [], qanswer_ids: [], qanswers_attributes: [], event_ids: []
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue