lib/mini_profiler/timer_struct.rb in rack-mini-profiler-0.1.10 vs lib/mini_profiler/timer_struct.rb in rack-mini-profiler-0.1.11.pre

- old
+ new

@@ -20,15 +20,12 @@ attributes[name] = val self end def to_json(*a) - if a[0] == nil - # YAJL doesnt like nil as options - ::JSON.generate( @attributes ) - else - ::JSON.generate(@attributes, a[0]) - end + # this does could take in an option hash, but the only interesting there is max_nesting. + # if this becomes an option we could increase + ::JSON.generate( @attributes, :max_nesting => 100 ) end end end