app/controllers/decidim/admin/moderations_controller.rb in decidim-admin-0.4.4 vs app/controllers/decidim/admin/moderations_controller.rb in decidim-admin-0.5.0
- old
+ new
@@ -16,31 +16,31 @@
authorize! :unreport, reportable
Admin::UnreportResource.call(reportable) do
on(:ok) do
flash[:notice] = I18n.t("reportable.unreport.success", scope: "decidim.moderations.admin")
- redirect_to decidim_admin.participatory_process_moderations_path
+ redirect_to moderations_path
end
on(:invalid) do
flash.now[:alert] = I18n.t("reportable.unreport.invalid", scope: "decidim.moderations.admin")
- redirect_to decidim_admin.participatory_process_moderations_path
+ redirect_to moderations_path
end
end
end
def hide
authorize! :hide, reportable
Admin::HideResource.call(reportable) do
on(:ok) do
flash[:notice] = I18n.t("reportable.hide.success", scope: "decidim.moderations.admin")
- redirect_to decidim_admin.participatory_process_moderations_path
+ redirect_to moderations_path
end
on(:invalid) do
flash.now[:alert] = I18n.t("reportable.hide.invalid", scope: "decidim.moderations.admin")
- redirect_to decidim_admin.participatory_process_moderations_path
+ redirect_to moderations_path
end
end
end
private