fixes bug: edit Debate was not validating captcha
This commit is contained in:
committed by
Juanjo Bazán
parent
b62729aac6
commit
aeceaf9ea8
@@ -32,7 +32,8 @@ class DebatesController < ApplicationController
|
||||
end
|
||||
|
||||
def update
|
||||
if @debate.update(debate_params)
|
||||
@debate.assign_attributes(debate_params)
|
||||
if @debate.save_with_captcha
|
||||
redirect_to @debate, notice: t('flash.actions.update.notice', resource_name: 'Debate')
|
||||
else
|
||||
load_featured_tags
|
||||
|
||||
Reference in New Issue
Block a user