mongoid/mongoid — pull request #1403 by asaaki (2011-11-02 19:14:04+00:00)
Title: Create option for scope overwrite exception

Mongoid handles scope overwrites with an exception instead of only logging these overwrites if option is set.

I think, this is very useful while development of an app with many methods and scopes in a model. In most cases it was not intended to overwrite and only happend accidentally. A raised error will be more helpful than a log entry and prevent possible failures or misbehavior.