This project is archived and is in readonly mode.
Fix NamedScope's delegation regex
-
Ryan Bates
+1, I also think this regular expression as a whole needs to be improved or replaced with something better. But I'm not sure what that is. Any ideas?
One possible fix for some of these problems is to put the ^ and $ outside of the parenthesis:
/^(__.+|nil\?|send|object_id|...)$/But that may change some of the intended behavior.
-
Repository
- State changed from new to resolved
(from [db116a2ed688d36570f412a42e9fc33dcbca56c7]) Fix NamedScope regex so methods containing "an" get delegated to proxy_found. [#901 Fix NamedScope's delegation regex state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...
-
Repository
- State changed from resolved to committed
(from [c37900138c565f7dacbbfbe20f9c397da7ec49c4]) Fix NamedScope regex so methods containing "an" get delegated to proxy_found
Signed-off-by: Michael Koziarski michael@koziarski.com [#901 Fix NamedScope's delegation regex state:committed]
Conflicts:
activerecord/lib/active_record/named_scope.rb
