Sha256: f63d5688fcd654942f5e086f08019c608e542866b92b2b04dcac79d2419bfeab

Contents?: true

Size: 415 Bytes

Versions: 5

Compression:

Stored size: 415 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Assemblies
    class AssemblyWidgetsController < Decidim::WidgetsController
      private

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

      def current_participatory_space
        model
      end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
decidim-assemblies-0.7.4 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.7.3 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.7.2 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.7.1 app/controllers/decidim/assemblies/assembly_widgets_controller.rb
decidim-assemblies-0.7.0 app/controllers/decidim/assemblies/assembly_widgets_controller.rb