notifly 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/notifly/notification.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3db709f0dcd09932609351d9eecad1779c9f1edb
|
4
|
+
data.tar.gz: 5878e7e50fdf4fb0cb219eab4ed08ca0165d9497
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 895bed1c390b0288aac01d3e85ea5ec7e3c829da622678f43958db290411f39dd77f023b83a43bb737a94b07d1941ee09c15d0598af6c2b5287f36b8b71e2f5f
|
7
|
+
data.tar.gz: cdcc36903a7bc8434e193efd8a76897c54cdc0122d8343134837d3b3c679ae39bfabd721439b9464c7dd78decdf1366afe84df2eb5fbc7182ae6d9b0f5e3fb2e
|
@@ -14,11 +14,11 @@ module Notifly
|
|
14
14
|
scope :newer, ->(than: nil) do
|
15
15
|
return ordered if than.blank?
|
16
16
|
|
17
|
-
reference =
|
17
|
+
reference = find_by(id: than)
|
18
18
|
ordered.where('created_at > ?', reference.created_at).where.not(id: reference)
|
19
19
|
end
|
20
20
|
scope :older, ->(than: nil) do
|
21
|
-
reference =
|
21
|
+
reference = find_by(id: than)
|
22
22
|
|
23
23
|
ordered.
|
24
24
|
where('created_at < ?', reference.created_at).
|