This project is archived and is in readonly mode.
[Patch] Named Scopes should be allowed to overwrite an existing method
-
Repository
- State changed from new to resolved
(from [b0967cc5cf5ce08e7fb0574692e3bb785e79973a]) 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 [Patch] Named Scopes should be allowed to overwrite an existing method state:resolved]Signed-off-by: wycats wycats@gmail.com
http://github.com/rails/rails/commit/b0967cc5cf5ce08e7fb0574692e3bb...
