effective_messaging 0.6.1 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/mailers/effective/messaging_mailer.rb +1 -5
- data/app/mailers/effective/notifications_mailer.rb +2 -0
- data/app/views/admin/notifications/_form_notification.html.haml +2 -1
- data/app/views/effective/messaging_mailer/chat_new_message.liquid +0 -1
- data/lib/effective_messaging/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ba14b4ea2b24940ece309555b7879f4d94ea043579c2c742ab7a06a962dbc6f
|
4
|
+
data.tar.gz: 42a326bea211a01340dc3128476170107aba231634ea9d133f77b913e8e9be1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8dc9a1d4c7324144721c38380bb8fb728a375e50bf7cc02dfc5ed40b87e8f392e6967ddf61186bf13d88a69a1bd888ef61ca95f3a0c82144fdcd9de440a24a4
|
7
|
+
data.tar.gz: 5dbbea251f9d27a09b453ff2d6be8b09676675190e7a04f50010afe684ca0eaef0ad7f05c65855c43dea39ffe99f6329e9f10cf4a8cca8d20da910f5ca2bbbf2
|
@@ -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
|
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.1
|
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
|