class Decidim::Pages::DestroyPage
destroyed. It usually happens as a callback when the component is removed.
Command that gets called when the page of this component needs to be
def call
def call Page.where(component: @component).destroy_all broadcast(:ok) end
def initialize(component)
def initialize(component) @component = component end