reverts debate links
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user