notifications 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/notifications/model.rb +3 -3
- data/lib/notifications/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55c8e18fe2e682eaf7a45ef6fb104d0a8d7446d6
|
4
|
+
data.tar.gz: 74a390763224f92a43807c2dbd31f86c2e04c75f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 314ca88887751450405a13e24f6ed4c8a093e670e24efd688c4bb040fb08a0c2394f339487497cdc28d77ccfe4fcc88138dc409dcb1949e4a96b9777499c9f62
|
7
|
+
data.tar.gz: cc94c073af15fdb5bc721d99e9a057d331ec9654980422ec6de19d0ad2f64eccfc0585b07d10ab4705717f53256d7522b70b3b3a0caff00362aa7dd1da2584f5
|
data/lib/notifications/model.rb
CHANGED
@@ -8,9 +8,9 @@ module Notifications
|
|
8
8
|
belongs_to :actor, class_name: Notifications.config.user_class
|
9
9
|
belongs_to :user, class_name: Notifications.config.user_class
|
10
10
|
|
11
|
-
belongs_to :target, polymorphic: true
|
12
|
-
belongs_to :second_target, polymorphic: true
|
13
|
-
belongs_to :third_target, polymorphic: true
|
11
|
+
belongs_to :target, polymorphic: true, optional: true
|
12
|
+
belongs_to :second_target, polymorphic: true, optional: true
|
13
|
+
belongs_to :third_target, polymorphic: true, optional: true
|
14
14
|
|
15
15
|
scope :unread, -> { where(read_at: nil) }
|
16
16
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: notifications
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|