lib/soybean/generators/model_generator.rb in soybean-2.5.3 vs lib/soybean/generators/model_generator.rb in soybean-2.5.4
- old
+ new
@@ -16,10 +16,12 @@
def generate
@wsdl.importedschema.map do |uri, schema|
"require 'mappings/#{URI.parse(schema.targetnamespace).path[1..-2].underscore}'\n"
end.join +
- "class #{class_name} < #{interface_name}\nend"
+ "class #{class_name} < #{interface_name}" +
+ "include #{URI.parse(@wsdl.importedschema.values.last.targetnamespace).path[1..-2].camelize}"
+ "end"
end
def class_name
@name.camelize
end