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.22.0 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.21.0 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.20.1 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.20.0 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.19.1 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.18.1 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.19.0 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.17.2 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.18.0 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.17.1 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.16.1 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.17.0 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.16.0 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.15.2 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.15.1 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.15.0 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.14.4 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.14.3 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.14.2 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.14.1 app/controllers/decidim/assemblies/assembly_widgets_controller.rb