Sha256: e49054bcdd698975c4b39be2502da543dd9d555ffb768a1cebfb49f14d5cea25
Contents?: true
Size: 1.05 KB
Versions: 31
Compression:
Stored size: 1.05 KB
Contents
# frozen_string_literal: true module Decidim module Surveys # This is the engine that runs on the public interface of `Surveys`. class AdminEngine < ::Rails::Engine isolate_namespace Decidim::Surveys::Admin paths["db/migrate"] = nil paths["lib/tasks"] = nil routes do get "/answer/:session_token", to: "surveys#show", as: :show_survey get "/answer/:session_token/export", to: "surveys#export_response", as: :export_response_survey get "/answers", to: "surveys#index", as: :index_survey get "/answer_options", to: "surveys#answer_options", as: :answer_options_survey put "/", to: "surveys#update", as: :survey root to: "surveys#edit" end initializer "decidim.notifications.components" do config.to_prepare do Decidim::EventsManager.subscribe(/^decidim\.events\.components/) do |event_name, data| CleanSurveyAnswersJob.perform_later(event_name, data) end end end def load_seed nil end end end end
Version data entries
31 entries across 31 versions & 1 rubygems