engines/adva_cms/vendor/plugins/cache_references/lib/cache_references/method_call_tracking.rb
# Wraps the trackable into a MethodReadObserver and registers itself as an observer. 
# Sets up tracking for the read_attribute method when the methods argument is nil. 
# Sets up tracking for any other given methods otherwise.
Wraps the trackable into a MethodReadObserver and registers itself as an observer.
Sets up tracking for the read_attribute method when the methods argument is nil.
Sets up tracking for any other given methods otherwise.
Wraps the trackable into a MethodReadObserver and registers itself as an observer . Sets up tracking for the read_attribute method when the methods argument is nil . Sets up tracking for any other given methods otherwise .
def track_methods(trackable, methods)
          if trackable.is_a? Array
            trackable.each { |trackable| track_methods trackable, methods }
          else
            trackable.track_method_calls(references, *Array(methods))
          end
        end
def track_methods ( trackable , methods ) if trackable . is_a? Array trackable . each { | trackable | track_methods trackable , methods } else trackable . track_method_calls ( references , * Array ( methods ) ) end end
Wraps the trackable into a MethodReadObserver and registers itself as an observer.
Wraps the trackable into a MethodReadObserver and registers itself as an observer .
trackable
methods