Sha256: e8b7a2347af567d30c319acae82deecf0dbb22b6ac5c15bd16c5c95d9a7ca1b7
Contents?: true
Size: 437 Bytes
Versions: 17
Compression:
Stored size: 437 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
17 entries across 17 versions & 2 rubygems