graphql_includable 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/graphql_includable.rb +1 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 21599908b740ed6950c8337474da5b68d936311a
4
- data.tar.gz: b02f6f9dad596fa35f74e98f13bbf1241d456ed3
3
+ metadata.gz: 783eb47a03d6cadff472b54bb0c94f08707929ec
4
+ data.tar.gz: 254933ebe759d8092c86ef3cffb726c400c5af36
5
5
  SHA512:
6
- metadata.gz: 9529b08e11f10ccbc5ae07985895ded5fb26f7c7e7dc9d7c5d46e66e7f80032306deeb379842cb840f282a4563e515b5c22a506569561300845048de27f0f2ff
7
- data.tar.gz: 716d7d4ba07e5af8eec16ae812f59d8ac25f7153428336cdaf67c2c76e1e8e983798e151eb244e447cbc8b5bd3034881071d30a8b0e24fe713697fab5b2ab1c1
6
+ metadata.gz: 8094f557f919e0409fd2d1b7328b6544f1eeb22952ba4f4a04fe6caf3f1f4075d19f11684dd84db6564ab3347419ea7cb4515ebc7f3e6e54519d793633d243ca
7
+ data.tar.gz: 184685006ff5e56b9582ce2bb53d7c96d04306551d54cba866baeb9c1012386bdd295151f3c6107989bb1813ca6f7482c9b802c77e74e8d0454624e38be2be80
@@ -1,6 +1,5 @@
1
1
  require "graphql"
2
2
  require "active_support/concern"
3
- require "byebug"
4
3
 
5
4
  GraphQL::Field.accepts_definitions includes: GraphQL::Define.assign_metadata_key(:includes)
6
5
 
@@ -57,7 +56,7 @@ module GraphQLIncludable
57
56
 
58
57
  node.scoped_children[return_type].each do |child_name, child_node|
59
58
  specified_includes = child_node.definitions[0].metadata[:includes]
60
- raw_association_name = specified_includes || (node.definitions[0].property || child_name).to_sym
59
+ raw_association_name = specified_includes || (child_node.definitions[0].property || child_name).to_sym
61
60
  delegated_model_name = get_delegated_model(return_model, raw_association_name)
62
61
  association_name = delegated_model_name || raw_association_name
63
62
  association = return_model.reflect_on_association(association_name)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql_includable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Rouse
@@ -40,7 +40,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
40
40
  version: '0'
41
41
  requirements: []
42
42
  rubyforge_project:
43
- rubygems_version: 2.6.10
43
+ rubygems_version: 2.6.12
44
44
  signing_key:
45
45
  specification_version: 4
46
46
  summary: An ActiveSupport::Concern for GraphQL Ruby to eager-load query data