rgviz-rails 0.75 → 0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|