jsonapi_compliable 0.6.12 → 0.6.13
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: d9dfda7d681369f42f21425f0018a8e0f49bf67d
|
4
|
+
data.tar.gz: a3cd2df0229d794e46b7de856ae6e7c097934ee2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f27a88befcb6ca0c3daa29882905389c980ea312da7c93d8f1d90e156ec6f82768678299830590d4eb18722da364567b249c34973f8fe0811328b9b42587181c
|
7
|
+
data.tar.gz: df11e084671c71f1dd41545b225ffc625f7f24df3090f6fd210632d6703a29c2f740957e64645350c9642d73ccc1c3d89f355ec287d728cf6b85cf1ddcaa81bc
|
@@ -21,8 +21,11 @@ module JsonapiCompliable
|
|
21
21
|
|
22
22
|
# (see Adapters::Abstract#count)
|
23
23
|
def count(scope, attr)
|
24
|
-
|
25
|
-
|
24
|
+
if attr.to_sym == :total
|
25
|
+
scope.distinct.count
|
26
|
+
else
|
27
|
+
scope.distinct.count(attr)
|
28
|
+
end
|
26
29
|
end
|
27
30
|
|
28
31
|
# (see Adapters::Abstract#average)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsonapi_compliable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Richmond
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-05-
|
12
|
+
date: 2017-05-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jsonapi-serializable
|