lib/maven/tools/visitor.rb in maven-tools-0.34.5 vs lib/maven/tools/visitor.rb in maven-tools-1.0.0.rc2

- old
+ new

@@ -78,11 +78,11 @@ def accept_array( name, array ) unless array.empty? start_tag( name ) n = name.to_s.sub( /ies$/, 'y' ).sub( /s$/, '' ) case array.first - when Virtus + when Maven::Tools::Base array.each do |i| start_tag( n ) visit( i ) end_tag( n ) end @@ -141,10 +141,10 @@ model.attributes.each do |k, v| if k == :properties accept_raw_hash( k, v ) else case v - when Virtus + when Base accept( k, v ) when Array accept_array( k, v ) when Hash accept_hash( k, v )