rails/rails — pull request #17374 by maurogeorge (2014-10-23 21:57:34+00:00)
Title: Raises ArgumentError when try to define a scope without a callable

This changes the actual exception

```
NoMethodError: undefined method `call' for #
```
to a `ArgumentError` when try to define a scope without a callable.