Sha256: 97e536e2a2f45d3e729b84b2292834db4b1c79d90ff27dac5f9bd38268750058
Contents?: true
Size: 438 Bytes
Versions: 56
Compression:
Stored size: 438 Bytes
Contents
# frozen_string_literal: true module Decidim module Pages # Command that gets called when the page of this feature needs to be # destroyed. It usually happens as a callback when the feature is removed. class DestroyPage < Rectify::Command def initialize(feature) @feature = feature end def call Page.where(feature: @feature).destroy_all broadcast(:ok) end end end end
Version data entries
56 entries across 56 versions & 2 rubygems