graphiform 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphiform/fields.rb +3 -5
- data/lib/graphiform/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f568ee911e1cd7c4dc85decd8913292d3abcfb2d6038ff247e7a99b861168060
|
4
|
+
data.tar.gz: 74eef82837648da958be37d5bd8672a03e27b618321a9ef0ea6cf6ee440eb164
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e42cf06adab34fb2db93633578b2418b8127749a16b25488fc9a8abd8ea3b2b529d49310b8cb2e437c7f04e1812242b40b530b443131dd8e489b6b85d79cb03
|
7
|
+
data.tar.gz: 656299a9d3c659197dc5650e93bea7f193043e1f6d2e0690a6e1c9e40a9b83111e3e20560fb8f57bde32860d91bdf63407a7b1ab9afff6a38be2b57fd6f2b916
|
data/lib/graphiform/fields.rb
CHANGED
@@ -138,11 +138,10 @@ module Graphiform
|
|
138
138
|
return unless argument_type
|
139
139
|
|
140
140
|
argument_type = Helpers.graphql_type(argument_type)
|
141
|
-
|
141
|
+
argument_attribute = scope_def.attribute
|
142
142
|
argument_prefix = scope_def.prefix
|
143
|
-
argument_suffix = scope_def.suffix
|
144
|
-
|
145
|
-
argument_name = "#{argument_prefix}#{camelized_attribute}#{argument_suffix}"
|
143
|
+
argument_suffix = scope_def.suffix == '_is' ? '' : scope_def.suffix
|
144
|
+
argument_name = "#{argument_prefix}#{argument_attribute}#{argument_suffix}".underscore
|
146
145
|
scope_name = scope_def.name
|
147
146
|
|
148
147
|
graphql_filter.class_eval do
|
@@ -150,7 +149,6 @@ module Graphiform
|
|
150
149
|
argument_name,
|
151
150
|
argument_type,
|
152
151
|
required: false,
|
153
|
-
camelize: false,
|
154
152
|
as: scope_name
|
155
153
|
)
|
156
154
|
end
|
data/lib/graphiform/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphiform
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jayce.pulsipher
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|