- 
    Type:
Improvement
 - 
    Resolution: Fixed
 - 
    Priority:
Major - P3
 - 
    Affects Version/s: None
 - 
    Component/s: None
 - 
    None
 
- 
        None
 
- 
        Fully Compatible
 
- 
        None
 - 
        None
 - 
        None
 - 
        None
 - 
        None
 - 
        None
 
This ticket is now for adding the ability to set driver options in the mongoid.yml.
Original Ticket
===========
In RUBY-2699, finder methods were fixed to take view options into account:
view.limit(1).count
and were hidden behind a feature flag. This ticket proposes to include a Mongoid feature flag which mirrors the Mongo one. Since the same problem exists in Mongoid:
Band.all.limit(1).count
only works when Mongo.broken_view_options is off. I think it's rather awkward to switch on a Mongo feature flag for what appears to be a Mongoid feature.
We would also have to bump the minimum ruby driver version for mongoid 8.0 to 2.18
- has to be done after
 - 
                    
MONGOID-5429 Require Driver 2.18 for Mongoid 8.0
-         
 - Closed
 
 -         
 
- has to be done before
 - 
                    
MONGOID-5414 Remove criteria/contextual caching
-         
 - Closed
 
 -         
 
- is related to
 - 
                    
RUBY-2699 make readable methods recognize chained options
-         
 - Closed
 
 -