Sha256: fffb820ad58acfc0b89e01986bc14dc4be5677aa7a08d6de680746df11ff7948

Contents?: true

Size: 1.06 KB

Versions: 3

Compression:

Stored size: 1.06 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 AdminEngine < ::Rails::Engine
      isolate_namespace Decidim::Meetings::Admin

      paths["db/migrate"] = nil

      routes do
        resources :meetings do
          resources :meeting_closes, only: [:edit, :update]
          resource :registrations, only: [:edit, :update] do
            resource :invites, only: [:new, :create]
            collection do
              get :export
            end
          end
          resources :attachment_collections
          resources :attachments
          resources :copies, controller: "meeting_copies", only: [:new, :create]
        end
        root to: "meetings#index"
      end

      def load_seed
        nil
      end

      initializer "decidim_meetings.assets" do |app|
        app.config.assets.precompile += %w(admin/decidim_meetings_manifest.js)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-meetings-0.11.2 lib/decidim/meetings/admin_engine.rb
decidim-meetings-0.11.1 lib/decidim/meetings/admin_engine.rb
decidim-meetings-0.11.0.pre1 lib/decidim/meetings/admin_engine.rb