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.4.3 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.4.2 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.4.1 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-0.4.3 decidim-proposals/app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-0.4.2 decidim-proposals/app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-0.4.1 decidim-proposals/app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.4.0 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-0.4.0 decidim-proposals/app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.3.2 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-0.3.2 decidim-proposals/app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.3.1 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-0.3.1 decidim-proposals/app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.3.0 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-0.3.0 decidim-proposals/app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.2.0 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-0.2.0 decidim-proposals/app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-proposals-0.1.0 app/controllers/decidim/proposals/proposal_widgets_controller.rb
decidim-0.1.0 decidim-proposals/app/controllers/decidim/proposals/proposal_widgets_controller.rb