Please sign in to comment.
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 with 7 additions and 7 deletions.