Class: Decidim::Admin::CreateNewsletter

Inherits:
Commands::CreateResource
  • Object
show all
Defined in:
app/commands/decidim/admin/create_newsletter.rb

Overview

Creates a newsletter and assigns the right author and organization.

Instance Method Summary collapse

Constructor Details

#initialize(form, content_block) ⇒ CreateNewsletter

Initializes the command.

form - The source fo data for this newsletter. content_block - An instance of ‘Decidim::ContentBlock` that holds the

newsletter attributes.


14
15
16
17
# File 'app/commands/decidim/admin/create_newsletter.rb', line 14

def initialize(form, content_block)
  super(form)
  @content_block = content_block
end