This project is archived and is in readonly mode.

#3651 ✓stale
RSL

Make escape_javascript helper a little more duck friendly

Reported by RSL | January 4th, 2010 @ 06:00 PM

Updated method to use to_s instead of raising exception when passed a numeric argument. Existing code handled nil in similar manner and as we Rubyists usually aren't in the habit of ensuring the class of return values, it seemed a logical implementation here as well. As always open to suggestions and questions.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages