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 [1302443d5cdb674b4077657c92e98151639b1cff] by Jon Leighton

Revision 1302443d5cdb674b4077657c92e98151639b1cff, committed by Jon Leighton · April 15th, 2011 @ 01:12 PM

Undo performances regressions I introduced in 36691ac9fc932cc11c59c42c7f388399f1e51f54 and add test for an edge case. Add comments to explain the intent of the code. Also fix the code (which previously worked differently on 1.8 and 1.9 due to Symbol#=~ being always false on 1.8)."
https://github.com/rails/rails/commit/1302443d5cdb674b4077657c92e98...

2 changed files

  • M activerecord/lib/active_record/attribute_methods/read.rb
  • M activerecord/test/cases/attribute_methods_test.rb