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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0eed5d09169b00e015b843f966332e3e558618df
4
- data.tar.gz: 82e251a76068372513597dc289e1c3388f2599dc
3
+ metadata.gz: 3db709f0dcd09932609351d9eecad1779c9f1edb
4
+ data.tar.gz: 5878e7e50fdf4fb0cb219eab4ed08ca0165d9497
5
5
  SHA512:
6
- metadata.gz: 0a6436ea150dfa3e28b65a3bd9d4150c722abd4499ff22d47bd86e2c850d2cefdbb7ef4f63afe61768d978fe28499f1c6203c8c565d9a5a4b608b7215cc52d29
7
- data.tar.gz: 87d238c6a8c05ab02d6c57bcd03df527e297197a33c9c85312fe753369a281e356f0fbe01d16b45225e57b73052d4965f5377e06f1ecfec8b56f4d687e071200
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 = find(than)
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 = find(than)
21
+ reference = find_by(id: than)
22
22
 
23
23
  ordered.
24
24
  where('created_at < ?', reference.created_at).
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Passalini