Raise exception when using scope without lambda

Solution to problem described here:
https://github.com/rails/rails/issues/10864