Sha256: 38f2e089b2ba70950c23a22d50d9cc4e34acbc62adc19f1e9010c44ebc77df63
Contents?: true
Size: 679 Bytes
Versions: 31
Compression:
Stored size: 679 Bytes
Contents
# frozen_string_literal: true module Decidim module Initiatives # This controller provides a widget that allows embedding the initiative class InitiativeWidgetsController < Decidim::WidgetsController helper InitiativesHelper helper PaginateHelper helper InitiativeHelper helper Decidim::Comments::CommentsHelper helper Decidim::Admin::IconLinkHelper include NeedsInitiative private def model @model ||= current_initiative end def current_participatory_space model end def iframe_url @iframe_url ||= initiative_initiative_widget_url(model) end end end end
Version data entries
31 entries across 31 versions & 1 rubygems