Fix party creation
This commit is contained in:
parent
2a465aca3b
commit
433bd19f6d
1 changed files with 3 additions and 1 deletions
|
|
@ -8,7 +8,9 @@ module Api
|
||||||
before_action :set, only: %w[update destroy]
|
before_action :set, only: %w[update destroy]
|
||||||
|
|
||||||
def create
|
def create
|
||||||
party = Party.new(party_params.merge(user: current_user))
|
party = Party.new
|
||||||
|
party.user = current_user if current_user
|
||||||
|
party.attributes = party_params if party_params
|
||||||
|
|
||||||
# unless party_params.empty?
|
# unless party_params.empty?
|
||||||
# party.attributes = party_params
|
# party.attributes = party_params
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue