Sha256: f08a7677732a0689c427b393e77283d84f8173dece7a217e0e705c64781b6553

Contents?: true

Size: 1.01 KB

Versions: 24

Compression:

Stored size: 1.01 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_meetings) do |content_block|
          content_block.cell = "decidim/meetings/content_blocks/upcoming_meetings"
          content_block.public_name_key = "decidim.meetings.content_blocks.upcoming_meetings.name"
          content_block.default!
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
decidim-meetings-0.27.9 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.27.8 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.27.7 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.27.6 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.26.10 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.26.9 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.27.5 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.26.8 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.27.4 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.27.3 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.26.7 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.26.5 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.27.2 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.27.1 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.26.4 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.27.0 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.26.3 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.27.0.rc2 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.27.0.rc1 lib/decidim/meetings/directory_engine.rb
decidim-meetings-0.26.2 lib/decidim/meetings/directory_engine.rb