Class: Skylight::Core::Probes::Mongoid::Probe Private
- Inherits:
-
Object
- Object
- Skylight::Core::Probes::Mongoid::Probe
- Defined in:
- lib/skylight/core/probes/mongoid.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #install ⇒ Object private
Instance Method Details
#install ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/skylight/core/probes/mongoid.rb', line 5 def install require "mongoid/version" version = Gem::Version.new(::Mongoid::VERSION) if version < Gem::Version.new("5.0") Skylight::Core::Probes.probe(:moped) else Skylight::Core::Probes.probe(:mongo) end end |