mailboxer 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/mailers/message_mailer.rb +1 -1
- data/mailboxer.gemspec +1 -1
- metadata +4 -4
|
@@ -4,7 +4,7 @@ class MessageMailer < ActionMailer::Base
|
|
|
4
4
|
#It calls new_message_email if notifing a new message and reply_message_email
|
|
5
5
|
#when indicating a reply to an already created conversation.
|
|
6
6
|
def send_email(message,receiver)
|
|
7
|
-
if message.conversation.messages.size >
|
|
7
|
+
if message.conversation.messages.size > 1
|
|
8
8
|
reply_message_email(message,receiver)
|
|
9
9
|
else
|
|
10
10
|
new_message_email(message,receiver)
|
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.2"
|
|
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: 11
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 4
|
|
9
|
-
-
|
|
10
|
-
version: 0.4.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.4.2
|
|
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-21 00:00:00 +02:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|