Sha256: 0f523c73fc4cde10603b35599b5e8e51a3fcf9192f47ffa4c42f77a5d07adf41

Contents?: true

Size: 841 Bytes

Versions: 5

Compression:

Stored size: 841 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ProcessGroupsContentBlock
    class Engine < ::Rails::Engine
      isolate_namespace Decidim::ProcessGroupsContentBlock

      initializer "decidim_process_groups_content_block.add_cells_view_paths" do
        Cell::ViewModel.view_paths << File.expand_path("#{Decidim::ProcessGroupsContentBlock::Engine.root}/app/cells")
      end

      initializer "decidim_process_groups_content_block.content_blocks" do
        Decidim.content_blocks.register(:homepage, :highlighted_process_groups) do |content_block|
          content_block.cell = "decidim/process_groups_content_block/content_blocks/highlighted_process_groups"
          content_block.public_name_key = "decidim.process_groups_content_block.content_blocks.highlighted_process_groups.name"
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
decidim-process_groups_content_block-0.19.0 lib/decidim/process_groups_content_block/engine.rb
decidim-process_groups_content_block-0.18.0 lib/decidim/process_groups_content_block/engine.rb
decidim-process_groups_content_block-0.17.0 lib/decidim/process_groups_content_block/engine.rb
decidim-process_groups_content_block-0.16.2 lib/decidim/process_groups_content_block/engine.rb
decidim-process_groups_content_block-0.16.1 lib/decidim/process_groups_content_block/engine.rb