effective_messaging 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73199ced9030a535adc9772cad3cca3492b88b7281e2121904bee5f048acdd25
|
4
|
+
data.tar.gz: f352bbee5a36e6daebbf10550f52282866af415545fb03c96768f95c49a99193
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65dd0eefa19a6ccc0c4b650b21897571072de0b8114c6b76a8ca16f5d96c3383b68ceef5daaf626a6452de1085e5198ac59144828fb19db48f899047deea6aad
|
7
|
+
data.tar.gz: 1e00a87ef99341168dc99a0b43ce7a03e8325f1408435a08235d1fa8832616c21261a60371c466fc779453ccf689cf16f47c25b4b6e992fdae7427faf0037be8
|
@@ -11,11 +11,7 @@ module Effective
|
|
11
11
|
raise('expected user to have an email') unless user.try(:email).present?
|
12
12
|
|
13
13
|
@assigns = chat_assigns(chat, user: user).merge(assigns_for(chat_user))
|
14
|
-
|
15
|
-
subject = subject_for(__method__, "New Message - #{chat}", chat, opts)
|
16
|
-
headers = headers_for(chat, opts)
|
17
|
-
|
18
|
-
mail(to: user.email, subject: subject, **headers)
|
14
|
+
mail(to: user.email, **headers_for(chat, opts))
|
19
15
|
end
|
20
16
|
|
21
17
|
protected
|
@@ -2,6 +2,8 @@ module Effective
|
|
2
2
|
class NotificationsMailer < EffectiveMessaging.parent_mailer_class
|
3
3
|
include EffectiveMailer
|
4
4
|
|
5
|
+
# This is not an EffectiveEmailTemplatesMailer
|
6
|
+
|
5
7
|
def notify(notification, opts = {})
|
6
8
|
raise('expected an Effective::Notification') unless notification.kind_of?(Effective::Notification)
|
7
9
|
|
@@ -56,7 +56,8 @@
|
|
56
56
|
%p The following email notification will be sent
|
57
57
|
|
58
58
|
- f.object.from ||= EffectiveMessaging.mailer_froms.first
|
59
|
-
= f.select :from,
|
59
|
+
= f.select :from, mailer_froms_collection()
|
60
|
+
|
60
61
|
= f.email_field :bcc
|
61
62
|
= f.text_field :subject
|
62
63
|
= f.text_area :body, rows: 20
|
data/lib/effective_messaging.rb
CHANGED
@@ -9,7 +9,6 @@ module EffectiveMessaging
|
|
9
9
|
[
|
10
10
|
:chats_table_name, :chat_users_table_name, :chat_messages_table_name, :notifications_table_name, :notification_logs_table_name,
|
11
11
|
:layout,
|
12
|
-
:froms,
|
13
12
|
:mailer, :parent_mailer, :deliver_method, :mailer_layout, :mailer_sender, :mailer_froms, :mailer_admin, :mailer_subject
|
14
13
|
]
|
15
14
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_messaging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|