rgviz-rails 0.75 → 0.76
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rgviz_rails/view_helper.rb +1 -1
- metadata +1 -1
@@ -208,7 +208,7 @@ module Rgviz
|
|
208
208
|
if load == :auto && !ajax && !hidden && params.empty?
|
209
209
|
require 'cgi'
|
210
210
|
|
211
|
-
package ||= get_package(kind)
|
211
|
+
package ||= Rgviz::ViewHelper.get_package(kind)
|
212
212
|
autoload = {'modules' => [{'name' => 'visualization', 'version' => '1', 'packages' => ["#{package}"], 'callback' => callback}]}
|
213
213
|
out << "<script type=\"text/javascript\" src=\"http://www.google.com/jsapi?autoload=#{CGI.escape autoload.to_json}\"></script>\n"
|
214
214
|
end
|