Sha256: c3d63804c680f465e7953e4a24048202346093f677a9e2cd4eda3bdcef8460dc

Contents?: true

Size: 402 Bytes

Versions: 41

Compression:

Stored size: 402 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Proposals
    class WidgetsController < Decidim::WidgetsController
      helper Proposals::ApplicationHelper

      private

      def model
        @model ||= Proposal.where(component: params[:component_id]).find(params[:proposal_id])
      end

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

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
decidim-proposals-0.26.10 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.26.9 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.27.5 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.26.8 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.27.4 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.27.3 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.26.7 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.26.5 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.27.2 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.27.1 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.26.4 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.27.0 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.26.3 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.27.0.rc2 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.27.0.rc1 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.26.2 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.26.1 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.26.0 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.26.0.rc2 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.26.0.rc1 app/controllers/decidim/proposals/widgets_controller.rb