Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [c519215aa83b041d438772977f962f54fff81a83] by Mislav Marohnić

Revision c519215aa83b041d438772977f962f54fff81a83, committed 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:

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

[#3199 state:committed]

Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/c519215aa83b041d438772977f962f...

2 changed files

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