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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4113184dbc4d65da4823092776eef80c3b8624fa
4
- data.tar.gz: 9e73b5541ce9ad2a4310b4e98b481a88f3835b45
3
+ metadata.gz: 55c8e18fe2e682eaf7a45ef6fb104d0a8d7446d6
4
+ data.tar.gz: 74a390763224f92a43807c2dbd31f86c2e04c75f
5
5
  SHA512:
6
- metadata.gz: ecafa7a93fc7bcb3b8a77e5c5a9c75dfa9fff67ac69f2dccba28254cc40dceeaa1f1d9ad431e2a9c311a74c77bd888d58ce502d7b20c645babf180fa0b283106
7
- data.tar.gz: d9729062567c02e619846f8e467feb7f2b6e41af3ced4f09088cc2a3348c05efa2ed1fc73f67b361756c9b89781f8cd2fa86df6decb1275df824daffae55dc8a
6
+ metadata.gz: 314ca88887751450405a13e24f6ed4c8a093e670e24efd688c4bb040fb08a0c2394f339487497cdc28d77ccfe4fcc88138dc409dcb1949e4a96b9777499c9f62
7
+ data.tar.gz: cc94c073af15fdb5bc721d99e9a057d331ec9654980422ec6de19d0ad2f64eccfc0585b07d10ab4705717f53256d7522b70b3b3a0caff00362aa7dd1da2584f5
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Notifications
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  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.2
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-06-01 00:00:00.000000000 Z
11
+ date: 2017-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails