igrigorik/contextual — pull request #3 by ratnikov (2012-03-29 20:50:43+00:00)
Title: Fixed the issue with rails integration for fixnums

Seems like the escaper takes only strings, so when feeding it a fixnum it would blow up.

Fixed by calling to_s on code when feeding into the escaper.

Reproduced the issue in a special spec that checks rails integration