This project is archived and is in readonly mode.

#3199 ✓committed
Mislav

`starts/ends_with?` implementations incompatible with that of ruby 1.8.7

Reported by Mislav | September 14th, 2009 @ 02:57 PM

starts/ends_with? methods shouldn't cast argument to string because ruby 1.8.7 doesn't seem to do that. for example:

"foobar".ends_with?(:bar)
# => true in ActiveSupport implementation, false in ruby 1.8.7

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>

Referenced by

Pages