Class Notifier
In: app/models/notifier.rb
Parent: ActionMailer::Base

Methods

Public Instance methods

[Source]

    # File app/models/notifier.rb, line 39
39:   def admin_log(period, s_count, periodical)
40:     subject       "#{s_count} mailings, #{period} admin update for #{GlobalConfig.site_host}"
41:     from          t('m.notifier.notifier', :email => GlobalConfig.noreply_email)
42:     recipients    User.admin.email
43:     sent_on       Time.now
44:     body          :period => period,
45:                   :periodical => periodical
46:   end

[Source]

    # File app/models/notifier.rb, line 75
75:   def invitation(invitation)
76:     subject       (invitation.role == Const::PeerGroupMembership::ADMIN ? 
77:                       t('m.notifier.invitation_co_founder',
78:                           :name => invitation.creator_user.name,
79:                           :group => invitation.peer_group.name,
80:                           :domain => GlobalConfig.site_host) :
81:                       t('m.notifier.invitation_join', 
82:                           :name => invitation.creator_user.name,
83:                           :group => invitation.peer_group.name,
84:                           :domain => GlobalConfig.site_host))
85:     from          t('m.notifier.notifier', :email => GlobalConfig.noreply_email)
86:     recipients    invitation.email
87:     sent_on       Time.now
88:     body          :edit_invitation_url => edit_invitation_url(
89:                       invitation.token,
90:                       :host => GlobalConfig.site_host),
91:                   :peer_group_url => _hidden_logi_url(
92:                       :ll_link_string => invitation.peer_group.home_page_link.to_s,
93:                       :host => GlobalConfig.site_host),
94:                   :peer_group_name => invitation.peer_group.name,
95:                   :creator_user_name => invitation.creator_user.name,
96:                   :invitation => invitation
97:   end

[Source]

    # File app/models/notifier.rb, line 28
28:   def logis_log(user, period, periodical)
29:     subject       t('m.notifier.update_logis', :period => period.humanize, 
30:                       :domain => GlobalConfig.site_host)
31:     from          t('m.notifier.notifier', :email => GlobalConfig.noreply_email)
32:     recipients    user.email
33:     sent_on       Time.now
34:     body          :user => user,
35:                   :period => period,
36:                   :periodical => periodical
37:   end

[Source]

    # File app/models/notifier.rb, line 64
64:   def password_reset_instructions(user)
65:     subject       t('m.notifier.password_reset')
66:     from          t('m.notifier.notifier', :email => GlobalConfig.noreply_email)
67:     recipients    user.email
68:     sent_on       Time.now
69:     body          :edit_password_reset_url => edit_password_reset_url(
70:                       user.perishable_token,
71:                       :host => GlobalConfig.site_host),
72:                   :user_name => user.name
73:   end

Mailers

[Source]

    # File app/models/notifier.rb, line 17
17:   def personalized_log(user, period, periodical)
18:     subject       t('m.notifier.update_personalized', :name => user.name, 
19:                       :domain => GlobalConfig.site_host)
20:     from          t('m.notifier.notifier', :email => GlobalConfig.noreply_email)
21:     recipients    user.email
22:     sent_on       Time.now
23:     body          :user => user,
24:                   :period => period,
25:                   :periodical => periodical
26:   end

[Source]

    # File app/models/notifier.rb, line 48
48:   def welcome(user)
49:     subject       t('m.notifier.welcome', :name => user.name,
50:                       :domain => GlobalConfig.site_host)
51:     from          t('m.notifier.notifier', :email => GlobalConfig.noreply_email)
52:     recipients    user.email
53:     sent_on       Time.now
54:     body          :home_page_url => _hidden_logi_url(
55:                       :ll_link_string => user.home_page_link.to_s,
56:                       :host => GlobalConfig.site_host),
57:                   :info_url => _hidden_logi_url(
58:                       :ll_link_string => Tag.main_page,
59:                       :host => GlobalConfig.site_host),
60:                   :user_name => user.name,
61:                   :user => user
62:   end

[Validate]