mongodb/mongo-ruby-driver — pull request #176 by durran (2013-03-13 21:54:37+00:00)
Title: Raise error on insert into system collection.

Only if the collection is not system.users or system.indexes.

Only performing the check on insert as this covers #insert and #save for new documents. Didn't put in initialize since there could be other system collections that might be queried, like system.namespaces.

[ RUBY-492 ]