mailboxer 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,7 +19,7 @@ class MessageMailer < ActionMailer::Base
19
19
  @receiver = receiver
20
20
  subject = message.subject.to_s
21
21
  subject = strip_tags(subject) unless subject.html_safe?
22
- mail(:to => receiver.email, :subject => "You have a new message: " + subject) do |format|
22
+ mail(:to => receiver.send(Mailboxer.email_method), :subject => "You have a new message: " + subject) do |format|
23
23
  format.html {render __method__}
24
24
  format.text {render __method__}
25
25
  end
@@ -31,7 +31,7 @@ class MessageMailer < ActionMailer::Base
31
31
  @receiver = receiver
32
32
  subject = message.subject.to_s
33
33
  subject = strip_tags(subject) unless subject.html_safe?
34
- mail(:to => receiver.email, :subject => "You have a new reply: " + subject) do |format|
34
+ mail(:to => receiver.send(Mailboxer.email_method), :subject => "You have a new reply: " + subject) do |format|
35
35
  format.html {render __method__}
36
36
  format.text {render __method__}
37
37
  end
@@ -14,7 +14,7 @@ class NotificationMailer < ActionMailer::Base
14
14
  @receiver = receiver
15
15
  subject = message.subject.to_s
16
16
  subject = strip_tags(subject) unless subject.html_safe?
17
- mail(:to => receiver.email, :subject => "You have a new notification: " + subject) do |format|
17
+ mail(:to => receiver.send(Mailboxer.email_method), :subject => "You have a new notification: " + subject) do |format|
18
18
  format.html {render __method__}
19
19
  format.text {render __method__}
20
20
  end
data/mailboxer.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "mailboxer"
3
- s.version = "0.3.0"
3
+ s.version = "0.3.1"
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, permitting it interchange messages with any other messageable model." +
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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Eduardo Casanova Cuesta