mailboxer 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/app/mailers/message_mailer.rb +2 -2
- data/app/mailers/notification_mailer.rb +1 -1
- data/mailboxer.gemspec +1 -1
- metadata +4 -4
@@ -18,7 +18,7 @@ class MessageMailer < ActionMailer::Base
|
|
18
18
|
@message = message
|
19
19
|
@receiver = receiver
|
20
20
|
subject = message.subject.to_s
|
21
|
-
subject = strip_tags(subject) unless
|
21
|
+
subject = strip_tags(subject) unless subject.html_safe?
|
22
22
|
mail(:to => receiver.send(Mailboxer.email_method), :subject => t('mailboxer.message_mailer.subject_new', :subject => subject)) do |format|
|
23
23
|
format.text {render __method__}
|
24
24
|
format.html {render __method__}
|
@@ -30,7 +30,7 @@ class MessageMailer < ActionMailer::Base
|
|
30
30
|
@message = message
|
31
31
|
@receiver = receiver
|
32
32
|
subject = message.subject.to_s
|
33
|
-
subject = strip_tags(subject) unless
|
33
|
+
subject = strip_tags(subject) unless subject.html_safe?
|
34
34
|
mail(:to => receiver.send(Mailboxer.email_method), :subject => t('mailboxer.message_mailer.subject_reply', :subject => subject)) do |format|
|
35
35
|
format.text {render __method__}
|
36
36
|
format.html {render __method__}
|
@@ -12,7 +12,7 @@ class NotificationMailer < ActionMailer::Base
|
|
12
12
|
def new_notification_email(notification,receiver)
|
13
13
|
@notification = notification
|
14
14
|
@receiver = receiver
|
15
|
-
subject =
|
15
|
+
subject = notification.subject.to_s
|
16
16
|
subject = strip_tags(subject) unless subject.html_safe?
|
17
17
|
mail(:to => receiver.send(Mailboxer.email_method), :subject => t('mailboxer.notification_mailer.subject', :subject => subject)) do |format|
|
18
18
|
format.text {render __method__}
|
data/mailboxer.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "mailboxer"
|
3
|
-
s.version = "0.4.
|
3
|
+
s.version = "0.4.3"
|
4
4
|
s.authors = ["Eduardo Casanova Cuesta"]
|
5
5
|
s.summary = "Messaging system for rails apps."
|
6
6
|
s.description = "A Rails engine that allows any model to act as messageable, allowing it to exchange messages " +
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailboxer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 3
|
10
|
+
version: 0.4.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Eduardo Casanova Cuesta
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-07-
|
18
|
+
date: 2011-07-22 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|