Class: Gricer::Mongoid::Agent
- Inherits:
-
Object
- Object
- Gricer::Mongoid::Agent
- Includes:
- ActiveModel::Statistics, Mongoid::Document, Mongoid::Timestamps
- Defined in:
- app/models/gricer/mongoid/agent.rb
Class Method Summary collapse
-
.browsers ⇒ Mongoid::Criteria
Filter out anything that is not a Browser or MobileBrowser.
Instance Method Summary collapse
Methods included from ActiveModel::Statistics
Class Method Details
.browsers ⇒ Mongoid::Criteria
Filter out anything that is not a Browser or MobileBrowser
29 30 31 |
# File 'app/models/gricer/mongoid/agent.rb', line 29 def self.browsers self.any_in(agent_class: [:browser, :mobile_browser]) end |