Please sign in to comment.
can? should only go to db if there are mongoid criteria in the condit…
…ions. Easier to just do a simple comparison on the object in memory than to search the database. Also this allows method calls and other attributes that might not be found in the database.
- Loading branch information...
Showing with 43 additions and 28 deletions.