Sha256: 6ecc11c0db999b427bdc8e6633416b332decce4b408634dfca781eb7552e46d6
Contents?: true
Size: 776 Bytes
Versions: 24
Compression:
Stored size: 776 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 helper ResourceHelper layout "decidim/widget" helper_method :model, :iframe_url, :current_participatory_space def show respond_to do |format| format.js { render "decidim/widgets/show" } format.html end end private def current_participatory_space @current_participatory_space ||= model.feature.participatory_space end def iframe_url raise NotImplementedError end def allow_iframe response.headers.delete "X-Frame-Options" end end end
Version data entries
24 entries across 24 versions & 2 rubygems