Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

changed the depreciated methods according to ruby-graphviz gem ~> 1.0.8 #3

Open
wants to merge 1 commit into from

1 participant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 rails_assviz.rb
View
6 rails_assviz.rb
@@ -16,7 +16,7 @@
#Checks for active_support
begin
- require 'active_support'
+ require 'active_support/all'
rescue LoadError
raise "Install the Ruby on Rails gem: gem install rails"
return false
@@ -169,11 +169,11 @@ def stop_executing(options={})
nodes.each do |node|
label = @options[:exclude_fields] ? node[0] : node[0] + ( node[1].count > 0 ? "|" + node[1].join("|") : "")
- g.add_node(node[0], :label => label )
+ g.add_nodes(node[0], :label => label )
end
edges.each do |edge|
- e=g.add_edge(edge[0],edge[2])
+ e=g.add_edges(edge[0],edge[2])
e.fontcolor = font_colors[edge[1]].nil? ? font_colors["default"] : font_colors[edge[1]]
e.label = edge[1].to_s
(edge[1] == "has_one" || edge[1] == "embeds_one") ? e.arrowhead="none" : e.arrowhead="crow"
Something went wrong with that request. Please try again.