This project is archived and is in readonly mode.

Changeset [c519215aa83b041d438772977f962f54fff81a83] by Mislav Marohnić

April 16th, 2010 @ 07:22 PM

ruby 1.8.7 compat: starts/ends_with? doesn't cast to string

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

# => true in ActiveSupport implementation, false in ruby 1.8.7

[#3199 state:committed]

Signed-off-by: Jeremy Kemper

Committed by Mislav Marohnić

  • M activesupport/lib/active_support/core_ext/string/starts_ends_with.rb
  • M activesupport/test/core_ext/string_ext_test.rb

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=""></a>