Sha256: 3cb6b36358c38df8f9a68d089d22b38e6685e9fb6a6154f1107ab79f1580a291

Contents?: true

Size: 271 Bytes

Versions: 6

Compression:

Stored size: 271 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Admin
    # This command deals with destroying a newsletter from the admin panel.
    class DestroyNewsletter < Decidim::Commands::DestroyResource
      private

      def invalid? = resource.sent?
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-admin-0.29.1 app/commands/decidim/admin/destroy_newsletter.rb
decidim-admin-0.29.0 app/commands/decidim/admin/destroy_newsletter.rb
decidim-admin-0.29.0.rc4 app/commands/decidim/admin/destroy_newsletter.rb
decidim-admin-0.29.0.rc3 app/commands/decidim/admin/destroy_newsletter.rb
decidim-admin-0.29.0.rc2 app/commands/decidim/admin/destroy_newsletter.rb
decidim-admin-0.29.0.rc1 app/commands/decidim/admin/destroy_newsletter.rb