Sha256: b27dd31f170bacbb652e803704a2dd98287f3dfe86026717afba58b84caaf7cb
Contents?: true
Size: 737 Bytes
Versions: 68
Compression:
Stored size: 737 Bytes
Contents
# frozen_string_literal: true module Decidim class WidgetsController < Decidim::ApplicationController 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.component.participatory_space end def iframe_url raise NotImplementedError end def allow_iframe response.headers.delete "X-Frame-Options" end end end
Version data entries
68 entries across 68 versions & 1 rubygems