Sha256: fd0497f0d84581112d14bd42db520101f5c4dd9ffddce96c9457b4967be5c22e

Contents?: true

Size: 1.46 KB

Versions: 31

Compression:

Stored size: 1.46 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
        get "/answer_options", to: "registration_form#answer_options", as: :answer_options_meeting

        resources :meetings do
          member do
            put :publish
            put :unpublish
          end
          resources :meeting_closes, only: [:edit, :update] do
            get :proposals_picker, on: :collection
          end
          resource :registrations, only: [:edit, :update] do
            resources :invites, only: [:index, :create]
            resource :form, only: [:edit, :update], controller: "registration_form"
            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]
          resource :poll, only: [:edit, :update], controller: "meetings_poll"
        end
        root to: "meetings#index"
      end

      def load_seed
        nil
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

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