Sha256: c3367a8a5ef266098f7f432d97fed1497eb1944d7f8483b4ceb6ddb7daad0cf6
Contents?: true
Size: 1.24 KB
Versions: 15
Compression:
Stored size: 1.24 KB
Contents
# frozen_string_literal: true module Decidim module Verifications # Decidim's core Rails Engine. class Engine < ::Rails::Engine isolate_namespace Decidim::Verifications routes do authenticate(:user) do resources :authorizations, only: [:new, :create, :index] do collection do get :first_login get :renew_modal get :renew end end Decidim.authorization_engines.each do |manifest| mount manifest.engine, at: "/#{manifest.name}", as: "decidim_#{manifest.name}" end end namespace :admin do # Revocations - Two options: 1) Revoke all (without params) 2) Revoke before date (when date params exist) post "verifications_before_date", to: "verifications#destroy_before_date", as: "verifications/destroy_before_date" delete "verifications_all", to: "verifications#destroy_all", as: "verifications/destroy_all" end end # Initializer to include cells views paths initializer "decidim_verifications.add_cells_view_paths" do Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Verifications::Engine.root}/app/cells") end end end end
Version data entries
15 entries across 15 versions & 1 rubygems