lib/ddtrace/contrib/active_model_serializers/integration.rb in ddtrace-0.32.0 vs lib/ddtrace/contrib/active_model_serializers/integration.rb in ddtrace-0.33.0
- old
+ new
@@ -14,17 +14,15 @@
def self.version
Gem.loaded_specs['active_model_serializers'] \
&& Gem.loaded_specs['active_model_serializers'].version
end
- def self.present?
- super && defined?(::ActiveModel::Serializer)
+ def self.loaded?
+ defined?(::ActiveModel::Serializer) && defined?(::ActiveSupport::Notifications)
end
def self.compatible?
- super \
- && defined?(::ActiveSupport::Notifications) \
- && version >= Gem::Version.new('0.9.0')
+ super && version >= Gem::Version.new('0.9.0')
end
def default_configuration
Configuration::Settings.new
end