Sha256: 0b7a8e2ecae123cf3ae8fd9dd9b6e2c0a69d17b7461f8389239d0574311df48a
Contents?: true
Size: 750 Bytes
Versions: 10
Compression:
Stored size: 750 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_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
10 entries across 10 versions & 2 rubygems