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: 1e25eb2d011e1022223e319903a90937837b4587
4
- data.tar.gz: 07827095384beaf319bbb7aa623fcae529d0d53a
3
+ metadata.gz: d9dfda7d681369f42f21425f0018a8e0f49bf67d
4
+ data.tar.gz: a3cd2df0229d794e46b7de856ae6e7c097934ee2
5
5
  SHA512:
6
- metadata.gz: 3e042cec76c278c0e381fa7877147eabe672ff0f3085eff52128cf0039323b312d72a88343d545a9b19fd2f1f3e8f854b109622e88062f1769c512897d7e12ae
7
- data.tar.gz: bdc20ce93d1b9ee0eec4710f5482931a2a4e5eb669cd0de9445c9495c4a20e7713ea454bbc20d2dc72e5596b3230f722b30a8c1d608398e86a2a120c980b742d
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
- column = attr == :total ? :all : attr
25
- scope.distinct.count(column)
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)
@@ -1,3 +1,3 @@
1
1
  module JsonapiCompliable
2
- VERSION = "0.6.12"
2
+ VERSION = "0.6.13"
3
3
  end
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.12
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-24 00:00:00.000000000 Z
12
+ date: 2017-05-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jsonapi-serializable