Sha256: 5d884787d7ae7ab55269e05ecb02e435e546049fc78bc798aa617105c27463ac

Contents?: true

Size: 765 Bytes

Versions: 13

Compression:

Stored size: 765 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Conferences
    module ContentBlocks
      class RegistryManager
        def self.register!
          Decidim.content_blocks.register(:homepage, :highlighted_conferences) do |content_block|
            content_block.cell = "decidim/conferences/content_blocks/highlighted_conferences"
            content_block.public_name_key = "decidim.conferences.content_blocks.highlighted_conferences.name"
            content_block.settings_form_cell = "decidim/conferences/content_blocks/highlighted_conferences_settings_form"

            content_block.settings do |settings|
              settings.attribute :max_results, type: :integer, default: 6
            end
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-conferences-0.29.1 lib/decidim/conferences/content_blocks/registry_manager.rb
decidim-conferences-0.28.4 lib/decidim/conferences/content_blocks/registry_manager.rb
decidim-conferences-0.29.0 lib/decidim/conferences/content_blocks/registry_manager.rb
decidim-conferences-0.28.3 lib/decidim/conferences/content_blocks/registry_manager.rb
decidim-conferences-0.29.0.rc4 lib/decidim/conferences/content_blocks/registry_manager.rb
decidim-conferences-0.29.0.rc3 lib/decidim/conferences/content_blocks/registry_manager.rb
decidim-conferences-0.29.0.rc2 lib/decidim/conferences/content_blocks/registry_manager.rb
decidim-conferences-0.29.0.rc1 lib/decidim/conferences/content_blocks/registry_manager.rb
decidim-conferences-0.28.2 lib/decidim/conferences/content_blocks/registry_manager.rb
decidim-conferences-0.28.1 lib/decidim/conferences/content_blocks/registry_manager.rb
decidim-conferences-0.28.0 lib/decidim/conferences/content_blocks/registry_manager.rb
decidim-conferences-0.28.0.rc5 lib/decidim/conferences/content_blocks/registry_manager.rb
decidim-conferences-0.28.0.rc4 lib/decidim/conferences/content_blocks/registry_manager.rb