module TingYun::Instrumentation::DataMapper
Constants
- MIN_SUPPORT_VERSION
Public Class Methods
support_data_mapper?()
click to toggle source
# File lib/ting_yun/instrumentation/data_mapper.rb, line 14 def self.support_data_mapper? defined?(::DataMapper) && ((defined?(::DataMapper::Adapters) && defined?(::DataMapper::Adapters::DataObjectsAdapter)) || (defined?(::DataMapper::Aggregates) && defined?(::DataMapper::Aggregates::DataObjectsAdapter))) && supported_version? end
supported_version?()
click to toggle source
# File lib/ting_yun/instrumentation/data_mapper.rb, line 10 def self.supported_version? ::TingYun::Support::VersionNumber.new(::DataMapper::VERSION) >= ::TingYun::Support::VersionNumber.new(MIN_SUPPORT_VERSION) end