mailboxer 0.5.2 → 0.5.3
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/lib/mailboxer/models/messageable.rb +2 -2
- data/mailboxer.gemspec +1 -1
- metadata +4 -4
|
@@ -9,8 +9,8 @@ module Mailboxer
|
|
|
9
9
|
#Converts the model into messageable allowing it to interchange messages and
|
|
10
10
|
#receive notifications
|
|
11
11
|
def acts_as_messageable
|
|
12
|
-
has_many :messages
|
|
13
|
-
has_many :receipts, :order => 'created_at DESC', :dependent => :destroy
|
|
12
|
+
has_many :messages, :as => :sender
|
|
13
|
+
has_many :receipts, :order => 'created_at DESC', :dependent => :destroy, :as => :receiver
|
|
14
14
|
|
|
15
15
|
include Mailboxer::Models::Messageable::InstanceMethods
|
|
16
16
|
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.5.
|
|
3
|
+
s.version = "0.5.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: 13
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 5
|
|
9
|
-
-
|
|
10
|
-
version: 0.5.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.5.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-09-
|
|
18
|
+
date: 2011-09-07 00:00:00 +02:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|