Sha256: cb9e978572aa57c66a2d6cdb146c5e6c76c7bdee35ffbf5daf7ca9771392313d
Contents?: true
Size: 1 KB
Versions: 14
Compression:
Stored size: 1 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 Decidim::EventsManager.subscribe(/^decidim\.events\.components/) do |event_name, data| CleanSurveyAnswersJob.perform_later(event_name, data) end end def load_seed nil end end end end
Version data entries
14 entries across 14 versions & 1 rubygems