Sha256: d914684b5e969fe1bf4a25c87101355f722c43c71e808656624defb5bf75b882

Contents?: true

Size: 556 Bytes

Versions: 10

Compression:

Stored size: 556 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Meetings
    class MeetingWidgetsController < Decidim::WidgetsController
      helper_method :model, :current_participatory_process

      private

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

      def current_participatory_process
        @current_participatory_process ||= model.feature.participatory_process
      end

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

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
decidim-meetings-0.4.0 app/controllers/decidim/meetings/meeting_widgets_controller.rb
decidim-0.4.0 decidim-meetings/app/controllers/decidim/meetings/meeting_widgets_controller.rb
decidim-meetings-0.3.2 app/controllers/decidim/meetings/meeting_widgets_controller.rb
decidim-0.3.2 decidim-meetings/app/controllers/decidim/meetings/meeting_widgets_controller.rb
decidim-meetings-0.3.1 app/controllers/decidim/meetings/meeting_widgets_controller.rb
decidim-0.3.1 decidim-meetings/app/controllers/decidim/meetings/meeting_widgets_controller.rb
decidim-meetings-0.3.0 app/controllers/decidim/meetings/meeting_widgets_controller.rb
decidim-0.3.0 decidim-meetings/app/controllers/decidim/meetings/meeting_widgets_controller.rb
decidim-meetings-0.2.0 app/controllers/decidim/meetings/meeting_widgets_controller.rb
decidim-0.2.0 decidim-meetings/app/controllers/decidim/meetings/meeting_widgets_controller.rb