Sha256: 664d08d76bc8d08442f71c92ac4514b112380252c95461a05f4a443942a07d62

Contents?: true

Size: 415 Bytes

Versions: 58

Compression:

Stored size: 415 Bytes

Contents

# frozen_string_literal: true

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

      private

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

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

Version data entries

58 entries across 58 versions & 2 rubygems

Version Path
decidim-proposals-0.10.1 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.10.0 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.9.3 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.9.2 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.9.1 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.9.0 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.8.4 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.8.3 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.8.2 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.8.1 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.8.0 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.7.4 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.7.3 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.7.2 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.7.1 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.7.0 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.6.8 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-0.6.8 decidim-proposals/app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.6.7 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-0.6.7 decidim-proposals/app/controllers/decidim/proposals/proposal_widgets_controller.rb