Publish any API card as soon as it is created
This commit is contained in:
committed by
Stanko K.R.
parent
3c3f098500
commit
ae0eaadcdf
@@ -18,6 +18,7 @@ class CardsController < ApplicationController
|
||||
|
||||
format.json do
|
||||
card = @board.cards.create! card_params.merge(creator: Current.user)
|
||||
card.publish
|
||||
head :created, location: card_path(card, format: :json)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user