reverts debate links

This commit is contained in:
rgarcia
2016-02-19 18:32:00 +01:00
parent 8841949dd9
commit f82a590e1e
19 changed files with 32 additions and 209 deletions

View File

@@ -40,7 +40,7 @@ module CommentableActions
if @resource.save_with_captcha
track_event
redirect_path = after_create_path
redirect_path = url_for(controller: controller_name, action: :show, id: @resource.id)
redirect_to redirect_path, notice: t("flash.actions.create.#{resource_name.underscore}")
else
load_categories
@@ -153,8 +153,4 @@ module CommentableActions
def index_customization
nil
end
def after_create_path
url_for(controller: controller_name, action: :show, id: @resource.id)
end
end