This project is archived and is in readonly mode.

#901 ✓committed
Jan De Poorter

Fix NamedScope's delegation regex

Reported by Jan De Poorter | August 25th, 2008 @ 11:42 AM | in 2.x

NamedScope's regex is currently defined as

*snip* ...empty?|any?|respond_to?...

which breaks Object.scope.rand

I changed it to ...empty\?|any\?|respond_to\?...

Which fixes the problem. Maybe the regular expression needs to be more precise in everything though..

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>

Attachments

Referenced by

Pages