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 [b0967cc5cf5ce08e7fb0574692e3bb785e79973a] by Matthew Rudy Jacobs

Revision b0967cc5cf5ce08e7fb0574692e3bb785e79973a, committed by Matthew Rudy Jacobs · March 28th, 2010 @ 09:53 PM

defining a named_scope which overwrites an existing method is now allowed we just log a warning.

This was motivated by the fact that :open is defined on all classes
as such the named_scope "open" can never be used, without hacking
ActiveRecord with an "undef_method" [#4083 state:resolved]

Signed-off-by: wycats wycats@gmail.com
http://github.com/rails/rails/commit/b0967cc5cf5ce08e7fb0574692e3bb...

2 changed files

  • M activerecord/lib/active_record/named_scope.rb
  • M activerecord/test/cases/named_scope_test.rb