Return when no params
This commit is contained in:
parent
b0b446aba3
commit
1925678888
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue