Sha256: 716658dcf6d54ef525d96da6170f85d3f7d809151e0e3651bb68cfe197f3bb82

Contents?: true

Size: 449 Bytes

Versions: 30

Compression:

Stored size: 449 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Assemblies
    class AssemblyWidgetsController < Decidim::WidgetsController
      helper Decidim::SanitizeHelper

      private

      def model
        @model ||= Assembly.find_by(slug: params[:assembly_slug])
      end

      def current_participatory_space
        model
      end

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

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
decidim-assemblies-0.13.1 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.12.2 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.13.0 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.12.1 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.13.0.pre1 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.12.0 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.11.2 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.12.0.pre app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.11.1 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.11.0.pre1 app/controllers/decidim/assemblies/assembly_widgets_controller.rb