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 75bf1380ba
commit 03f7951676
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