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 [9b423ac0b73483c4a812d7376f818e831f909120] by Xavier Noria

Revision 9b423ac0b73483c4a812d7376f818e831f909120, committed 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...

1 changed file

  • M activemodel/lib/active_model/attribute_methods.rb