graphql-activerecord 0.6.4 → 0.6.5

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: 2b316be308228bed3428c853f1758487bfc539c0
4
- data.tar.gz: 80ac3b3c800a9917cd5c3cd372f210d28c04bedc
3
+ metadata.gz: 105da8534e0ce2d9bc160d33ae3510e1d01d4afa
4
+ data.tar.gz: 8767b01bb0c65e30197682326ccf6e0007e8525a
5
5
  SHA512:
6
- metadata.gz: e455b6ea181c3e193c9dbd338a16e010b3022c240e0ec16dda062dc6f8e98ba4cd242843a9e67a5a35cc0c7a5e58b79880c1496e1b5c0c41c1589ba1e5b12ebf
7
- data.tar.gz: 27c16e7e09fb531eb9bbf121485a822cb3335142ebc495d6a9637a0784da3588857ded4eabfc6f1fe66359386964dbbeea64a949d1cead293fa688325eaa670d
6
+ metadata.gz: eb852b3d8b70bc3e70ad30085882cfd3daae6a9fe8f23e669a7eb15c4f19e61389fcf3d839d1942cb6f3717c4ee367510b268af0190f23290db72f363797feed
7
+ data.tar.gz: ada5473875a5965929147b3cdf0c9a97ac694a6666bfa384303bc5ff61d6efcabe6fef2c1e511072db30d62eeb117868a8bdf220e11d75ed73b0afa970bcb297
@@ -50,7 +50,10 @@ module GraphQL
50
50
  target_id = model.send(reflection.foreign_key)
51
51
 
52
52
  # If there isn't an associated model, mark the association loaded and return
53
- mark_association_loaded(association, nil) and return true if target_id.nil?
53
+ if target_id.nil?
54
+ mark_association_loaded(association, nil)
55
+ return true
56
+ end
54
57
 
55
58
  # If the associated model isn't cached, return false
56
59
  target = context.cached_models.detect { |m| m.is_a?(association.klass) && m.id == target_id }
@@ -1,5 +1,5 @@
1
1
  module GraphQL
2
2
  module Models
3
- VERSION = "0.6.4"
3
+ VERSION = "0.6.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Foster
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-21 00:00:00.000000000 Z
11
+ date: 2016-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql