devise_multiple_token_auth 0.0.18 → 0.0.19
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cca55cb2747d081ac95812600ef98c9ee21be3b
|
4
|
+
data.tar.gz: bb7d9c60ea3f07bc61b5d0d7b16cf93830501255
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec4e29c955d6aa160759ef45b1b703332b667c311596fbdb9e8fef49b2b45614f99a69275d3ae1cc3b126c0dd4d6ab013cc96cc5f59de6a343fb6b7e5eea22b4
|
7
|
+
data.tar.gz: dfc26f32f60c7e6a4af43a3f538e488107ae040dc000913e612811f1aa50f9c62abaaddc54f858e91dd60cb1a0ea365a7b1d584fa90806f3bd049c86724c1e35
|
@@ -2,6 +2,7 @@ class DeviseMultipleTokenAuth::Device < ActiveRecord::Base
|
|
2
2
|
belongs_to :user
|
3
3
|
|
4
4
|
scope :expired, -> {where("expires_at < ?",Time.now)}
|
5
|
+
scope :with_push_tokens, -> {where("push_token IS NOT NULL")}
|
5
6
|
|
6
7
|
def self.destroy_expired
|
7
8
|
DeviseMultipleTokenAuth::Device.expired.destroy_all
|