solid_cable 0.2.0 → 0.2.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f21d57b5c3c839b30ef880bb84c02fe5e375d3674d282a1b8541e1d86b131a4
|
4
|
+
data.tar.gz: 2b58076180cb59dcfd61f5c39620d14399ce0cbf14c681038488e404ed3f81a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fe8d98cd77a1db28afa1e3d2c4a917f8eb1741ea56969974fb9944ba43f9a46f20e49204b40315fccb7aa8534cf143c2cd225d93c85ff5b1454690f6e3eb2b9
|
7
|
+
data.tar.gz: c254587b2e46bac28c16cfe0dd7c25631fff6ec4930c38be4e4dda63acb70a74b5a194b9a9ed3060361b56eac6f07f4462672ae74fbc69bda024b6ebec4dae51
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module SolidCable
|
4
4
|
class Message < SolidCable::Record
|
5
5
|
scope :prunable, lambda {
|
6
|
-
where(created_at:
|
6
|
+
where(created_at: ..::SolidCable.keep_messages_around_for.ago)
|
7
7
|
}
|
8
8
|
scope :broadcastable, lambda { |channels, last_id|
|
9
9
|
where(channel: channels).where(id: (last_id + 1)..).order(:id)
|
data/lib/solid_cable/version.rb
CHANGED