This project is archived and is in readonly mode.

Changeset [b0967cc5cf5ce08e7fb0574692e3bb785e79973a] 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...

Committed by Matthew Rudy Jacobs

  • M activerecord/lib/active_record/named_scope.rb
  • M activerecord/test/cases/named_scope_test.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>