Add a switch for allowing registration on events (proposals)

This commit is contained in:
James Mason 2018-10-18 12:01:42 -07:00
parent 9f45b4884c
commit 047a39ec0b
No known key found for this signature in database
GPG key ID: 1B3951886C449023
10 changed files with 30 additions and 9 deletions

View file

@ -57,7 +57,11 @@ module Admin
private
def cfp_params
params.require(:cfp).permit(:start_date, :end_date, :description, :cfp_type)
params.require(:cfp).permit(
:start_date, :end_date,
:description, :cfp_type,
:enable_registrations
)
end
def cfp_params_or_first_remaining_type