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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08ff4749f23802da320103f114788a5ad4cc6c8c
4
- data.tar.gz: 08a76bb8c01737fb8cea8dc8c7b70ee53ca6c805
3
+ metadata.gz: 18d9a12135650986b4f1fa94b249c189e9b81fc4
4
+ data.tar.gz: 96221312f3f89efa12ab4ab467ef0faf9452770f
5
5
  SHA512:
6
- metadata.gz: 9abd2e719b0af42f7212240c3500889f35d48d7f15a6b24694bcc751820948e51b27364dd16fd84846336e24f0a940118a2589e60dcfcad72c2b2c6674efd0a8
7
- data.tar.gz: 704bcc04aacf3c835747d244f9029fdbc732576240b6a9e77a187209164873fd1333b1962785050ea70406c8537d8ac923c3e9c9699c689649011b45e095e251
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,
@@ -1,3 +1,3 @@
1
1
  module Graphiti
2
- VERSION = "1.0.alpha.22"
2
+ VERSION = "1.0.alpha.23"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.alpha.22
4
+ version: 1.0.alpha.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond