Sha256: 25cac03c26a7cb406bcfe362e88ec9dff6a31c22d380df73f4957a65bd53139c

Contents?: true

Size: 526 Bytes

Versions: 71

Compression:

Stored size: 526 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Consultations
    # This controller provides a widget that allows embedding the question
    class QuestionWidgetsController < Decidim::WidgetsController
      include NeedsQuestion

      helper Decidim::SanitizeHelper

      private

      def model
        @model ||= current_question
      end

      def current_participatory_space
        model
      end

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

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
decidim-consultations-0.23.0 app/controllers/decidim/consultations/question_widgets_controller.rb
decidim-consultations-0.22.0 app/controllers/decidim/consultations/question_widgets_controller.rb
decidim-consultations-0.21.0 app/controllers/decidim/consultations/question_widgets_controller.rb
decidim-consultations-0.20.1 app/controllers/decidim/consultations/question_widgets_controller.rb
decidim-consultations-0.20.0 app/controllers/decidim/consultations/question_widgets_controller.rb
decidim-consultations-0.19.1 app/controllers/decidim/consultations/question_widgets_controller.rb
decidim-consultations-0.18.1 app/controllers/decidim/consultations/question_widgets_controller.rb
decidim-consultations-0.19.0 app/controllers/decidim/consultations/question_widgets_controller.rb
decidim-consultations-0.17.2 app/controllers/decidim/consultations/question_widgets_controller.rb
decidim-consultations-0.18.0 app/controllers/decidim/consultations/question_widgets_controller.rb
decidim-consultations-0.17.1 app/controllers/decidim/consultations/question_widgets_controller.rb
decidim-consultations-0.16.1 app/controllers/decidim/consultations/question_widgets_controller.rb
decidim-consultations-0.17.0 app/controllers/decidim/consultations/question_widgets_controller.rb
decidim-consultations-0.16.0 app/controllers/decidim/consultations/question_widgets_controller.rb
decidim-consultations-0.15.2 app/controllers/decidim/consultations/question_widgets_controller.rb
decidim-consultations-0.15.1 app/controllers/decidim/consultations/question_widgets_controller.rb
decidim-consultations-0.15.0 app/controllers/decidim/consultations/question_widgets_controller.rb
decidim-consultations-0.14.4 app/controllers/decidim/consultations/question_widgets_controller.rb
decidim-consultations-0.14.3 app/controllers/decidim/consultations/question_widgets_controller.rb
decidim-consultations-0.14.2 app/controllers/decidim/consultations/question_widgets_controller.rb