-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
Labels:
I lost some time working on a feature thinking I needed to fix the non-functional extensions to default scopes in order to accomplish what I wanted (some custom batch operations that worked with any custom scope). I was all ready to issue a pull request when I noticed Criteria#method_missing and thought myself foolish. Class methods are equivalent to default scope extensions, which is why ActiveRecord doesn't support them.
These two commits helps avoid the above by:
1. Removing the &block param from default_scope since it didn't do anything and misled me.
2. Making Criteria#respond_to? be truthful about what methods its responds to given its method_missing hook.