lib/generators/graphql/interface_generator.rb in graphql-1.7.4 vs lib/generators/graphql/interface_generator.rb in graphql-1.7.5
- old
+ new
@@ -18,10 +18,10 @@
default: [],
banner: "name:type name:type ...",
desc: "Fields for this interface (type may be expressed as Ruby or GraphQL)"
def create_type_file
- template "interface.erb", "app/graphql/types/#{type_file_name}.rb"
+ template "interface.erb", "#{options[:directory]}/types/#{type_file_name}.rb"
end
end
end
end