lib/rails_erd/diagram/templates/node.erb in rails-erd-0.3.0 vs lib/rails_erd/diagram/templates/node.erb in rails-erd-0.4.0
- old
+ new
@@ -1,6 +1,6 @@
-<% if vertical? %>{<% end %>
+<% if options.orientation == :vertical %>{<% end %>
<table border="0" align="center" cellspacing="0.5" cellpadding="0" width="<%= NODE_WIDTH + 4 %>">
<tr><td align="center" valign="bottom" width="<%= NODE_WIDTH %>"><font face="Arial Bold" point-size="11"><%= entity.name %></font></td></tr>
</table>
<% if attributes.any? %>
|
@@ -9,6 +9,6 @@
<tr><td align="left" width="<%= NODE_WIDTH %>" port="<%= attribute %>"><%= attribute %> <font face="Arial Italic" color="grey60"><%= attribute.type_description %></font></td></tr>
<% end %>
</table>
<% else %>
<% end %>
-<% if vertical? %>}<% end %>
+<% if options.orientation == :vertical %>}<% end %>
\ No newline at end of file