subj_models 0.6.8 → 0.6.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/subj_models/user.rb +2 -1
- data/lib/subj_models/user_specialization_approval.rb +1 -0
- data/lib/subj_models/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83b3db2e5f8927a6e738c5a0e02b99a9e84a50cc
|
4
|
+
data.tar.gz: be2661f76e5822262e661d59b50ea92d24eba982
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3276bb46bbe12c84cac0558095ac479c2049eab8bb343a9ad44a58bc00f51f303abf788f64ca4f8324ff138d3fe761f8f47b13ad4e0ff6af46583b9a1729ac19
|
7
|
+
data.tar.gz: 769466f49ea3cd44bdc6d12f9ba400be8186e7022f8e0fe77f0f0a732af90de15bf2acff97899b485cebf1e174a45065196a78b846c457aad06c7fe0e9fe46ad
|
data/lib/subj_models/user.rb
CHANGED
@@ -66,13 +66,14 @@ module SubjModels
|
|
66
66
|
end
|
67
67
|
|
68
68
|
scope :internal_users, -> (condition) do
|
69
|
-
joins(:user_card_delivery).where.not(user_card_deliveries: {id: nil} ).where(external_id: nil)
|
69
|
+
joins(:user_card_delivery).where.not(user_card_deliveries: {id: nil} ).where(external_id: nil).uniq
|
70
70
|
end
|
71
71
|
|
72
72
|
scope :updated_at_last_day, -> (date) do
|
73
73
|
where.not(external_id: nil)
|
74
74
|
.joins(:user_specialization_approvals)
|
75
75
|
.where("user_specialization_approvals.updated_at > ? OR users.updated_at > ?", date.to_datetime, date.to_datetime)
|
76
|
+
.uniq
|
76
77
|
end
|
77
78
|
|
78
79
|
end
|
data/lib/subj_models/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: subj_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denys Dvoriashyn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|