lib/contrast/utils/duck_utils.rb in contrast-agent-3.14.0 vs lib/contrast/utils/duck_utils.rb in contrast-agent-3.15.0
- old
+ new
@@ -60,19 +60,9 @@
return true if object.cs__is_a?(Set)
# otherwise, don't risk it
false
end
-
- # This method will return true if the object being checked has been patched
- # to have the cs__properties field. We check the cs__tracked? method since it
- # is side effect free (ie doesn't cause the properties object to be created).
- def trackable? object
- return true if object.cs__respond_to?(:cs__tracked?)
- return false unless object.is_a?(Delegator)
-
- object.cs__delegator_respond_to?(:cs__tracked?)
- end
end
end
end
end