Sha256: 7caef9e0b78a34d4e727886addbbdb4639840fa4fa6e1aeb697f34f738d5d1c5
Contents?: true
Size: 981 Bytes
Versions: 14
Compression:
Stored size: 981 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] do collection do get :create end end 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
14 entries across 14 versions & 1 rubygems