Sha256: e4663ab75b1af6bcd8658c6a7eb27beb19817e9ea93e89ef366239426a6a3b09

Contents?: true

Size: 1 KB

Versions: 34

Compression:

Stored size: 1 KB

Contents

# frozen_string_literal: true

module Decidim
  module Meetings
    # This is the engine that runs on the public interface of `decidim-meetings`.
    # It mostly handles rendering the created meeting associated to a participatory
    # process.
    class DirectoryEngine < ::Rails::Engine
      isolate_namespace Decidim::Meetings::Directory

      paths["db/migrate"] = nil
      paths["lib/tasks"] = nil

      routes do
        resources :meetings, only: [:index], format: :html
        get "/calendar", to: "meetings#calendar"
        root to: "meetings#index", format: :html
      end

      def load_seed
        nil
      end

      initializer "decidim.meetings.content_blocks" do
        Decidim.content_blocks.register(:homepage, :upcoming_events) do |content_block|
          content_block.cell = "decidim/meetings/content_blocks/upcoming_events"
          content_block.public_name_key = "decidim.meetings.content_blocks.upcoming_events.name"
          content_block.default!
        end
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
decidim-meetings-0.25.2 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.25.1 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.25.0 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.25.0.rc4 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.25.0.rc3 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.25.0.rc2 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.25.0.rc1 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.24.3 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.23.6 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.24.2 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.23.5 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.24.1 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.24.0 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.24.0.rc2 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.23.4 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.24.0.rc1 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.23.3 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.23.2 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.23.1 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.23.1.rc1 lib/decidim/meetings/directory_engine.rb