Skip to content

Commit b38825f

Browse files
committed
fix placement of render call
1 parent 20f815b commit b38825f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

app/controllers/tags_controller.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ def nuke
228228
if @tag.children.any?
229229
flash[:error] = 'Cannot delete a tag that has children.'
230230
else
231-
232231
Post.transaction do
233232
AuditLog.admin_audit event_type: 'tag_nuke', related: @tag, user: current_user,
234233
comment: "#{@tag.name} (#{@tag.id})"
@@ -253,8 +252,8 @@ def nuke
253252
end
254253

255254
flash[:success] = "Deleted #{@tag.name}"
256-
redirect_to category_tags_path(@category)
257255
end
256+
redirect_to category_tags_path(@category)
258257
end
259258

260259
def nuke_warning; end

0 commit comments

Comments
 (0)