Sha256: c4235f92a94c268b9f17cf2e538841903aefc7d75034574b3a0a810b48995925

Contents?: true

Size: 679 Bytes

Versions: 78

Compression:

Stored size: 679 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
      paths["lib/tasks"] = 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

      def load_seed
        nil
      end
    end
  end
end

Version data entries

78 entries across 78 versions & 1 rubygems

Version Path
decidim-generators-0.29.1 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.28.4 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.27.9 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.29.0 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.28.3 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.27.8 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.29.0.rc4 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.29.0.rc3 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.29.0.rc2 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.29.0.rc1 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.28.2 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.27.7 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.28.1 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.27.6 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.26.10 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.26.9 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.28.0 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.27.5 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.28.0.rc5 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.28.0.rc4 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb