Master sync

This commit is contained in:
Senad Uka
2020-07-15 11:58:34 +02:00
parent 4c49a5db03
commit 7f49f31ebf
6 changed files with 53 additions and 0 deletions

View File

@@ -33,6 +33,11 @@ class BroadcastsController < ApplicationController
end
def update
unless params.has_key?(:broadcast)
@broadcast.regenerate_token
redirect_to([@project, @broadcast], notice: t('.reset_notice')) and return
end
@broadcast.update(broadcast_params)
@files = @broadcast.files.order("created_at DESC").paginate(page: 1)