Skip to content

Commit 5d69eac

Browse files
author
Robert Mosolgo
authored
Merge pull request #3110 from tadeusz-niemiec/update_union_type_generator
Update union type generator
2 parents 28677d1 + 2b56554 commit 5d69eac

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<% module_namespacing_when_supported do -%>
22
module Types
33
class <%= type_ruby_name.split('::')[-1] %> < Types::BaseUnion
4-
<% if possible_types.any? %> possible_types [<%= normalized_possible_types.join(", ") %>]
4+
<% if possible_types.any? %> possible_types <%= normalized_possible_types.join(", ") %>
55
<% end %> end
66
end
77
<% end -%>

spec/integration/rails/generators/graphql/union_generator_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class GraphQLGeneratorsUnionGeneratorTest < BaseGeneratorTest
1616
expected_content = <<-RUBY
1717
module Types
1818
class WingedCreatureType < Types::BaseUnion
19-
possible_types [Types::InsectType, Types::BirdType]
19+
possible_types Types::InsectType, Types::BirdType
2020
end
2121
end
2222
RUBY

0 commit comments

Comments
 (0)