graphiti 1.0.alpha.22 → 1.0.alpha.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphiti/scoping/sort.rb +1 -0
- data/lib/graphiti/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18d9a12135650986b4f1fa94b249c189e9b81fc4
|
4
|
+
data.tar.gz: 96221312f3f89efa12ab4ab467ef0faf9452770f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bcabf487b785846af3d77e1402fc16aeac6ef8240c5e52bd1f5217e5ae0339db3c0c5b2a42686d1dd6964274b0d564cfb96a641f2508b697c0ff0f5093f2c1a
|
7
|
+
data.tar.gz: 705dcef46324aebe05871956ab655bce5fdc4b4f38d8f140acb790165038d467ee2183e4f0e733baf0a5e85477c8ff5ace1e5560e238a97b4bb379826170b5e1
|
@@ -22,6 +22,7 @@ module Graphiti
|
|
22
22
|
# @return the scope we are chaining/modifying
|
23
23
|
def apply_standard_scope
|
24
24
|
each_sort do |attribute, direction|
|
25
|
+
resource.get_attr!(attribute, :sortable, request: true)
|
25
26
|
sort = resource.sorts[attribute]
|
26
27
|
if sort[:only] && sort[:only] != direction
|
27
28
|
raise Errors::UnsupportedSort.new resource,
|
data/lib/graphiti/version.rb
CHANGED