NUBIC/surveyor — pull request #324 by jdzak (2012-05-16 03:16:55+00:00)
Title: Survey#as_json doesn't seem to be serializing the survey

Survey#as_json is returning an empty hash. I couldn't track down why all of a sudden this is happening, I tried downgrading rabl to 0.6.6 and 0.6.0 to see if older versions of rabl work, but no luck.

I was able to fix the problem and in my fix I'm using rabl's new direct template rendering methods. The only downside was I wasn't able to figure out a way to render directly to a hash, so I'm rendering json and parsing that into a hash.