rails-graphql 0.1.1 → 0.1.2

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: 0f89afed32f0e7c1c9738f6fc92f99cd25b985f18b830c02e85cf7ba622486b7
4
- data.tar.gz: 2b478c122302b2a8f1e7cf386fb2545b1a7665d5745c4e78708541c913ff7d70
3
+ metadata.gz: 5b7143f1fc49071fc54b85e984ef9289158ca63f5609e205e06922a176409dbe
4
+ data.tar.gz: 3decb2c2d664b54910810970502e8964ce38e150e0b2d77a4828f341b28ea86d
5
5
  SHA512:
6
- metadata.gz: 6996ae2c2d05697dc923a78eec06a236e7199fe7cbf0e459bf9444792caff76fec3442e0f6006581e2cd49e8ca9d95f0b2d4476ddd57264b274b90db51b5ab62
7
- data.tar.gz: 1c885af10dc5187e478ed8887f2b98522ab7ffccb1ff8788a4dbc7d751d78b2560232ac74c6ae89e8c9b47e21021b5b1a5475de5ebdef38c3a5a9604dbaeada1
6
+ metadata.gz: b9726c20a23e8960aed07f6756f83e5bc195d87af453e60509b0f8414ff7395281a7fd85f9f5bf487668f03474d273a51a5a1601ac40f5f521c6ce05ff770a94
7
+ data.tar.gz: b36323d14417f0e153690b3f4c436fd8254c83982e1b379b618ae7666c72c8d6ace2177e3d24821d8e2345db39a823a402d6a588506277ce4a7e4c712300c4a9
@@ -124,6 +124,11 @@ module Rails # :nodoc:
124
124
  @enums ||= model.defined_enums.dup
125
125
  end
126
126
 
127
+ # Just a little override to ensure that both model and table are ready
128
+ def build!
129
+ super if model&.table_exists?
130
+ end
131
+
127
132
  protected
128
133
 
129
134
  # Check if a given +attr_name+ is associated with a presence validator
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rails # :nodoc:
4
4
  module GraphQL # :nodoc:
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-graphql
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
  - Carlos Silva
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-07 00:00:00.000000000 Z
11
+ date: 2020-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails