lib/cockpit/core/scope.rb in cockpit-0.2.3 vs lib/cockpit/core/scope.rb in cockpit-0.2.4

- old
+ new

@@ -6,10 +6,14 @@ @settings = settings _process(method, *args, &block) end def value - settings[key] + if settings[key].nil? + nil + else + JSON.parse(%Q|{"value":#{settings[key]}}|)['value'] + end end def value=(x) settings[key] = x end