Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Be Mongoid forward & backwards compatible:
- In Mongoid 3, Criteria#and is provided via Origin, and is no longer an alias for #where. It is now used for providing $and selection in MongoDB queries. I've modified the get_current_users criteria to use #where for each chain, which will be both forwards and backwards compatible with Mongoid. - Also fixed 3 broken specs in the rails3_mongoid tests that could not cope with Time.now properly if in a timezone ahead of UTC, like I am in Berlin - Fixes #258.
- Loading branch information
Showing
3 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters