Sha256: 5bed2376f38e939eb7ca0a6211346b89e3844bdde081332db8340df7c474dced
Contents?: true
Size: 758 Bytes
Versions: 14
Compression:
Stored size: 758 Bytes
Contents
# frozen_string_literal: true module Decidim class WidgetsController < Decidim::ApplicationController skip_authorization_check only: :show skip_before_action :verify_authenticity_token after_action :allow_iframe, only: :show layout "decidim/widget" helper_method :model, :iframe_url, :current_participatory_process def show respond_to do |format| format.js { render "decidim/widgets/show" } format.html end end private def current_participatory_process @current_participatory_process ||= model.feature.participatory_process end def iframe_url raise NotImplementedError end def allow_iframe response.headers.delete "X-Frame-Options" end end end
Version data entries
14 entries across 14 versions & 2 rubygems