lib/generators/graphql/templates/interface.erb in graphql-1.8.6 vs lib/generators/graphql/templates/interface.erb in graphql-1.8.7
- old
+ new
@@ -1,4 +1,6 @@
-module <%= type_ruby_name %>
- include Types::BaseInterface
-<% normalized_fields.each do |f| %> <%= f.to_ruby %>
-<% end %>end
+module Types
+ module <%= type_ruby_name.split('::')[-1] %>
+ include Types::BaseInterface
+<% normalized_fields.each do |f| %> <%= f.to_ruby %>
+<% end %> end
+end