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.25.2 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.25.1 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.25.0 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.25.0.rc4 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.25.0.rc3 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.25.0.rc2 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.25.0.rc1 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.24.3 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.23.6 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.24.2 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.23.5 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.24.1 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.24.0 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.24.0.rc2 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.23.4 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.24.0.rc1 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.23.3 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.23.2 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.23.1 app/controllers/decidim/proposals/widgets_controller.rb
decidim-proposals-0.23.1.rc1 app/controllers/decidim/proposals/widgets_controller.rb