Method: Gricer::Mongoid::Agent.browsers
- Defined in:
- app/models/gricer/mongoid/agent.rb
.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 |