method

parent_of?

rails latest stable - Class: ActiveSupport::Notifications::Event
parent_of?(event)
public

No documentation available.

# File activesupport/lib/active_support/notifications/instrumenter.rb, line 176
      def parent_of?(event) # :nodoc:
        ActiveSupport.deprecator.warn <<~EOM
          ActiveSupport::Notifications::Event#parent_of? is deprecated and will
          be removed in Rails 7.2.
        EOM
        start = (time - event.time) * 1000
        start <= 0 && (start + duration >= event.duration)
      end