Sha256: 1389ca5e903ad82e132302b31fc24e1d5e8837eeee71eed0766b86adee480f41

Contents?: true

Size: 896 Bytes

Versions: 18

Compression:

Stored size: 896 Bytes

Contents

# frozen_string_literal: true

require "searchlight"
require "kaminari"
require "jquery-tmpl-rails"
require "icalendar"

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 Engine < ::Rails::Engine
      isolate_namespace Decidim::Meetings

      routes do
        resources :meetings, only: [:index, :show] do
          resource :registration, only: [:create, :destroy]
          resource :meeting_widget, only: :show, path: "embed"
        end
        root to: "meetings#index"
      end

      initializer "decidim_meetings.inject_abilities_to_user" do |_app|
        Decidim.configure do |config|
          config.abilities += ["Decidim::Meetings::Abilities::CurrentUserAbility"]
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
decidim-meetings-0.6.8 lib/decidim/meetings/engine.rb
decidim-0.6.8 decidim-meetings/lib/decidim/meetings/engine.rb
decidim-meetings-0.6.7 lib/decidim/meetings/engine.rb
decidim-0.6.7 decidim-meetings/lib/decidim/meetings/engine.rb
decidim-meetings-0.6.6 lib/decidim/meetings/engine.rb
decidim-0.6.6 decidim-meetings/lib/decidim/meetings/engine.rb
decidim-meetings-0.6.5 lib/decidim/meetings/engine.rb
decidim-0.6.5 decidim-meetings/lib/decidim/meetings/engine.rb
decidim-meetings-0.6.4 lib/decidim/meetings/engine.rb
decidim-0.6.4 decidim-meetings/lib/decidim/meetings/engine.rb
decidim-meetings-0.6.3 lib/decidim/meetings/engine.rb
decidim-0.6.3 decidim-meetings/lib/decidim/meetings/engine.rb
decidim-meetings-0.6.2 lib/decidim/meetings/engine.rb
decidim-0.6.2 decidim-meetings/lib/decidim/meetings/engine.rb
decidim-meetings-0.6.1 lib/decidim/meetings/engine.rb
decidim-0.6.1 decidim-meetings/lib/decidim/meetings/engine.rb
decidim-meetings-0.6.0 lib/decidim/meetings/engine.rb
decidim-0.6.0 decidim-meetings/lib/decidim/meetings/engine.rb