Sha256: e3d97efac2f5a2f4d876f01b9a9b2310273306e0d1243426f45681b7ea76a17f
Contents?: true
Size: 1.06 KB
Versions: 13
Compression:
Stored size: 1.06 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_surveys_admin.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
13 entries across 13 versions & 1 rubygems