graphiti-activegraph 0.1.18 → 0.1.19

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
  SHA256:
3
- metadata.gz: fec65766ac7739c8c38a65cc8ffbd071df5ff4f30bbb8ac5373c4ae1996e33a3
4
- data.tar.gz: de51eb41133930d20523781ce94f79545d80be3f14b5afc416aeee047133a128
3
+ metadata.gz: 46a16074941e4ee029f645c51e1205ad85c47f2d5f68e28263cf8f6bb2d4dc1f
4
+ data.tar.gz: b769fe9d7c723b6388de46ea98d2d81b04784a00e43012141fe494ced7172171
5
5
  SHA512:
6
- metadata.gz: dd67df9255f946307f733c86cb40d0126b0938f922a3104a823079cb1449a6d07be828e0ecb006085aecc64e6af049bd54f8264c58b767699512e0ed790d439a
7
- data.tar.gz: 73e67b1af55bbfa1ad3736b64c003ea966f730429ea441b075cb53d5f4b27bc0f085ffb3a59e52b1f0442380488ec6ac97454e5bdb0385d9c58b6fe6241903a7
6
+ metadata.gz: f08617d64f77129f273e42e26ad173858440e957427268155c6c470aff22131b8fdde701bb2d22e1c72e3cb6dce98f6c627397dae181416ed2a88ccd43382905
7
+ data.tar.gz: 312ed3bd2df8a475d3c35e1298498d4717f38ce4c6ca5312ecef80318e4d9ae9da2613f5b982057c1b6299db50a6656530214bbca6da9603a8d4e8038a3962e4
@@ -40,7 +40,7 @@ module Graphiti::ActiveGraph
40
40
  if extra_field
41
41
  scope.query.order("#{attribute} #{direction}").proxy_as(scope.model, scope.identity)
42
42
  else
43
- scope.order(attribute => direction)
43
+ scope.send(resource.relation_resource? ? :rel_order : :order, attribute => direction)
44
44
  end
45
45
  end
46
46
 
@@ -1,5 +1,5 @@
1
1
  module Graphiti
2
2
  module ActiveGraph
3
- VERSION = '0.1.18'
3
+ VERSION = '0.1.19'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti-activegraph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hardik Joshi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-17 00:00:00.000000000 Z
11
+ date: 2022-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphiti