Return when no params

This commit is contained in:
Justin Edmund 2023-01-08 21:46:32 -08:00
parent b0b446aba3
commit 1925678888

View file

@ -136,6 +136,8 @@ module Api
end
def party_params
return unless params[:party].present?
params.require(:party).permit(
:user_id,
:extra,
@ -154,7 +156,7 @@ module Api
:button_count,
:turn_count,
:chain_count
) if params[:party].present?
)
end
end
end