Updated the generated scopes to use a lambda so that they are compatible with Rails 4.
Upgraded Mongoids generated scope to be compatible with Rails 4.
Merge pull request #47 from col/master

Make generated scopes compatible with Rails 4