Sha256: 17b46c9fb71f13ce04b63a9a2a614ddc6c6185c295595a50ef9fc5656baa41e5

Contents?: true

Size: 492 Bytes

Versions: 71

Compression:

Stored size: 492 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Consultations
    class ConsultationWidgetsController < Decidim::WidgetsController
      helper Decidim::SanitizeHelper

      layout false

      private

      def model
        @model ||= Consultation.find_by(slug: params[:consultation_slug])
      end

      def current_participatory_space
        model
      end

      def iframe_url
        @iframe_url ||= consultation_consultation_widget_url(model)
      end
    end
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
decidim-consultations-0.26.10 app/controllers/decidim/consultations/consultation_widgets_controller.rb
decidim-consultations-0.26.9 app/controllers/decidim/consultations/consultation_widgets_controller.rb
decidim-consultations-0.27.5 app/controllers/decidim/consultations/consultation_widgets_controller.rb
decidim-consultations-0.26.8 app/controllers/decidim/consultations/consultation_widgets_controller.rb
decidim-consultations-0.27.4 app/controllers/decidim/consultations/consultation_widgets_controller.rb
decidim-consultations-0.27.3 app/controllers/decidim/consultations/consultation_widgets_controller.rb
decidim-consultations-0.26.7 app/controllers/decidim/consultations/consultation_widgets_controller.rb
decidim-consultations-0.26.5 app/controllers/decidim/consultations/consultation_widgets_controller.rb
decidim-consultations-0.27.2 app/controllers/decidim/consultations/consultation_widgets_controller.rb
decidim-consultations-0.27.1 app/controllers/decidim/consultations/consultation_widgets_controller.rb
decidim-consultations-0.26.4 app/controllers/decidim/consultations/consultation_widgets_controller.rb
decidim-consultations-0.27.0 app/controllers/decidim/consultations/consultation_widgets_controller.rb
decidim-consultations-0.26.3 app/controllers/decidim/consultations/consultation_widgets_controller.rb
decidim-consultations-0.27.0.rc2 app/controllers/decidim/consultations/consultation_widgets_controller.rb
decidim-consultations-0.27.0.rc1 app/controllers/decidim/consultations/consultation_widgets_controller.rb
decidim-consultations-0.26.2 app/controllers/decidim/consultations/consultation_widgets_controller.rb
decidim-consultations-0.26.1 app/controllers/decidim/consultations/consultation_widgets_controller.rb
decidim-consultations-0.26.0 app/controllers/decidim/consultations/consultation_widgets_controller.rb
decidim-consultations-0.26.0.rc2 app/controllers/decidim/consultations/consultation_widgets_controller.rb
decidim-consultations-0.26.0.rc1 app/controllers/decidim/consultations/consultation_widgets_controller.rb