This project is archived and is in readonly mode.

Changeset [9b423ac0b73483c4a812d7376f818e831f909120] by Xavier Noria

April 19th, 2011 @ 05:16 PM

let this regexp be stricter

The purpose of this regexp is to detect strings that
are valid identifiers to be used as method names.
The anchor $ allows a trailing newline, and both ^
and $ may be bypassed because Ruby regexps are
multiline always. The anchors \A and \z are the
proper ones to ensure string boundaries.
https://github.com/rails/rails/commit/9b423ac0b73483c4a812d7376f818...

Committed by Xavier Noria

  • M activemodel/lib/active_model/attribute_methods.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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>