Sha256: 81ca78ddc4cbf87fe3ab122b500c4749c1b1a9062c84c27150f8887cfcdb6bbe

Contents?: true

Size: 648 Bytes

Versions: 7

Compression:

Stored size: 648 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

      def load_seed
        nil
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-generators-0.13.1 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.12.2 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.13.0 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.12.1 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.13.0.pre1 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.12.0 lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb
decidim-generators-0.12.0.pre lib/decidim/generators/component_templates/lib/decidim/component/admin_engine.rb.erb