asterite/rgviz-rails — Issue #2: Unable to specify nested options
Author: bradseefeld
Created: 2012-01-17 22:37:19+00:00
State: open

I am trying to specify the an option for the the tooltip. tooltip.trigger = "none". My options has looks like:

:options => { :tooltip => { :trigger => :none }}

But this ends up rendering like: {"tooltip":{"trigger"=>"none"}}

When I look at the source code: https://github.com/asterite/rgviz-rails/blob/master/lib/rgviz_rails/view_helper.rb

Why is opts_to_json not using ActiveSupport instead? Calling .to_json on the hash for example?