Skip to content

Instantly share code, notes, and snippets.

@miguelcma
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miguelcma/9889236a26fede270cc3 to your computer and use it in GitHub Desktop.
Save miguelcma/9889236a26fede270cc3 to your computer and use it in GitHub Desktop.
A Mongoid::Criteria instance should not respond_to :reject! or any other in place changing iterators
it should also be forced to run after calling #inspect mimicking an ActiveRecord::Relation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment