lib/decidim/admin/engine.rb in decidim-admin-0.25.2 vs lib/decidim/admin/engine.rb in decidim-admin-0.26.0.rc1
- old
+ new
@@ -22,9 +22,14 @@
Decidim::Core::Engine.routes do
mount Decidim::Admin::Engine => "/admin"
end
end
+ initializer "decidim_admin.mime_types" do |_app|
+ # Required for importer example downloads
+ Mime::Type.register Decidim::Admin::Import::Readers::XLSX::MIME_TYPE, :xlsx
+ end
+
initializer "decidim_admin.global_moderation_menu" do
Decidim.menu :admin_global_moderation_menu do |menu|
menu.add_item :moderations,
I18n.t("actions.not_hidden", scope: "decidim.moderations"),
decidim_admin.moderations_path,