Sha256: 2a58970a50a602a430af44370823af8a32964c940ec0307167660566aa400d7f

Contents?: true

Size: 528 Bytes

Versions: 6

Compression:

Stored size: 528 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ParticipatoryProcesses
    class ParticipatoryProcessWidgetsController < Decidim::WidgetsController
      helper Decidim::SanitizeHelper

      private

      def model
        @model ||= ParticipatoryProcess.where(slug: params[:participatory_process_slug]).first
      end

      def current_participatory_space
        model
      end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.9.0 app/controllers/decidim/participatory_processes/participatory_process_widgets_controller.rb
decidim-participatory_processes-0.8.4 app/controllers/decidim/participatory_processes/participatory_process_widgets_controller.rb
decidim-participatory_processes-0.8.3 app/controllers/decidim/participatory_processes/participatory_process_widgets_controller.rb
decidim-participatory_processes-0.8.2 app/controllers/decidim/participatory_processes/participatory_process_widgets_controller.rb
decidim-participatory_processes-0.8.1 app/controllers/decidim/participatory_processes/participatory_process_widgets_controller.rb
decidim-participatory_processes-0.8.0 app/controllers/decidim/participatory_processes/participatory_process_widgets_controller.rb