Class: Decidim::NewsletterTemplates::BasicOnlyTextCell

Inherits:
BaseCell
  • Object
show all
Defined in:
decidim-core/app/cells/decidim/newsletter_templates/basic_only_text_cell.rb

Instance Method Summary collapse

Methods inherited from BaseCell

#custom_url_for_mail_root, #decidim, #newsletter, #organization, #recipient_user

Methods included from Decidim::NewslettersHelper

#custom_url_for_mail_root, #parse_interpolations, #utm_codes

Instance Method Details

#bodyObject



12
13
14
# File 'decidim-core/app/cells/decidim/newsletter_templates/basic_only_text_cell.rb', line 12

def body
  parse_interpolations(uninterpolated_body, recipient_user, newsletter.id)
end

#showObject



8
9
10
# File 'decidim-core/app/cells/decidim/newsletter_templates/basic_only_text_cell.rb', line 8

def show
  render :show
end

#uninterpolated_bodyObject



16
17
18
# File 'decidim-core/app/cells/decidim/newsletter_templates/basic_only_text_cell.rb', line 16

def uninterpolated_body
  translated_attribute(model.settings.body)
end