Class: Decidim::UserUpdateMailer

Inherits:
ApplicationMailer show all
Defined in:
app/mailers/decidim/user_update_mailer.rb

Instance Method Summary collapse

Methods included from OrganizationHelper

#current_organization_name, #organization_colors, #organization_description_label, #organization_name

Methods included from TranslatableAttributes

#default_locale?

Methods included from SanitizeHelper

#decidim_escape_translated, #decidim_html_escape, #decidim_sanitize, #decidim_sanitize_admin, #decidim_sanitize_editor, #decidim_sanitize_editor_admin, #decidim_sanitize_newsletter, #decidim_sanitize_translated, #decidim_url_escape, included

Instance Method Details

#notify(user, updates) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'app/mailers/decidim/user_update_mailer.rb', line 5

def notify(user, updates)
  with_user(user) do
    @user = user
    @organization = user.organization
    @updates = format_array(updates)
    mail(to: user.email, subject: I18n.t(
      "decidim.user_update_mailer.subject"
    ))
  end
end