graphiti_graphql 0.1.7 → 0.1.8

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: cc432e46c0ddb7fb38495da303d3eb9c5100ca56a75d53c92646d8f2119c4eba
4
- data.tar.gz: 9eb0bcd701933b21f3fffa985ef8a1018ef24419669aeff5fbfc8a83b6419456
3
+ metadata.gz: 40128f0eaf0ad7859fa35c67bb73b2a2fccf51829bb3914877ce0c19730def91
4
+ data.tar.gz: 6f3fe80c618aaa093dd2daec4aa726621c32d2228bb92ddfdfd00f6a610490af
5
5
  SHA512:
6
- metadata.gz: 4ed58eb809cb6c3baf5022f170f99919a60a885c0677cbc1de6f3d12e4484b8575fcbf2d7cb5d8adb8c22e305c82e586c1fd7070da3bdbb07ed0da7192b4c59d
7
- data.tar.gz: ed579a04fcdfc44ca5ae5b461530ceb212c536fb6dd2e515426bde26097daaaf6e93235c3b36789bebeae35defa54a4f77e721333e7d4b2932c2a51a45dd4eac
6
+ metadata.gz: f957bb6f2092f052d683c94008940823a29cb0a995d4741eaadbf2b87f0e3585268e01819a7fde057afd0a99c0f2b4dd14d2fc76903f3e44cc51c05724a0bd69
7
+ data.tar.gz: 30c3b26190d74c0559553458d05fdd36367fb9742b320322138d0f7a9ac503775d14edddb3a25b28276b5c099588186554f6ac686da0095175c557a921c1029e
@@ -64,13 +64,15 @@ module GraphitiGraphQL
64
64
  end
65
65
 
66
66
  initializer "graphiti_graphql.define_controller" do
67
- app_controller = GraphitiGraphQL.config.federation_application_controller || ::ApplicationController
68
- # rubocop:disable Lint/ConstantDefinitionInBlock(Standard)
69
- class GraphitiGraphQL::ExecutionController < app_controller
70
- register_exception Graphiti::Errors::UnreadableAttribute, message: true
71
- def execute
72
- params = request.params # avoid strong_parameters
73
- render json: Graphiti.gql(params[:query], params[:variables])
67
+ GraphitiGraphQL::Engine.reloader_class.to_prepare do
68
+ app_controller = GraphitiGraphQL.config.federation_application_controller || ::ApplicationController
69
+ # rubocop:disable Lint/ConstantDefinitionInBlock(Standard)
70
+ class GraphitiGraphQL::ExecutionController < app_controller
71
+ register_exception Graphiti::Errors::UnreadableAttribute, message: true
72
+ def execute
73
+ params = request.params # avoid strong_parameters
74
+ render json: Graphiti.gql(params[:query], params[:variables])
75
+ end
74
76
  end
75
77
  end
76
78
  end
@@ -1,3 +1,3 @@
1
1
  module GraphitiGraphQL
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti_graphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond