Sha256: 38f2e089b2ba70950c23a22d50d9cc4e34acbc62adc19f1e9010c44ebc77df63

Contents?: true

Size: 679 Bytes

Versions: 31

Compression:

Stored size: 679 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Initiatives
    # This controller provides a widget that allows embedding the initiative
    class InitiativeWidgetsController < Decidim::WidgetsController
      helper InitiativesHelper
      helper PaginateHelper
      helper InitiativeHelper
      helper Decidim::Comments::CommentsHelper
      helper Decidim::Admin::IconLinkHelper

      include NeedsInitiative

      private

      def model
        @model ||= current_initiative
      end

      def current_participatory_space
        model
      end

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

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
decidim-initiatives-0.13.1 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.12.2 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.13.0 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.12.1 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.13.0.pre1 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.12.0 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.11.2 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.12.0.pre app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.11.1 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.11.0.pre1 app/controllers/decidim/initiatives/initiative_widgets_controller.rb
decidim-initiatives-0.9.1 app/controllers/decidim/initiatives/initiative_widgets_controller.rb