Sha256: 0fcdf9c01d7c5adc3eaa1f7c3175c6a0215f2489b48696480212035dfcecb615

Contents?: true

Size: 1.11 KB

Versions: 3

Compression:

Stored size: 1.11 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
      paths["lib/tasks"] = nil

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

      def load_seed
        nil
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-meetings-0.15.2 lib/decidim/meetings/admin_engine.rb
decidim-meetings-0.15.1 lib/decidim/meetings/admin_engine.rb
decidim-meetings-0.15.0 lib/decidim/meetings/admin_engine.rb