Sha256: b2f06925bffe5e710209d9c18974da49019f7ccf49b56099c9ec4dbd17239164
Contents?: true
Size: 904 Bytes
Versions: 3
Compression:
Stored size: 904 Bytes
Contents
# frozen_string_literal: true module Decidim module <%= component_module_name %> # This is the engine that runs on the public interface of `<%= component_module_name %>`. class AdminEngine < ::Rails::Engine isolate_namespace Decidim::<%= component_module_name %>::Admin paths["db/migrate"] = nil routes do # Add admin engine routes here # resources :<%= component_name %> do # collection do # resources :exports, only: [:create] # end # end # root to: "<%= component_name %>#index" end initializer "decidim_<%= component_name %>.inject_abilities_to_user" do |_app| Decidim.configure do |config| config.admin_abilities += ["Decidim::<%= component_module_name %>::Abilities::Admin::AdminAbility"] end end def load_seed nil end end end end
Version data entries
3 entries across 3 versions & 1 rubygems