Sha256: 2a2a21ee4f1deff41a2e7b570df037de0fe6b2c68f16d95553274c6daec89040

Contents?: true

Size: 296 Bytes

Versions: 1

Compression:

Stored size: 296 Bytes

Contents

# frozen_string_literal: true

require "active_support/core_ext/date_and_time/compatibility"
require "active_support/core_ext/module/redefine_method"

class Time
  include DateAndTime::Compatibility

  silence_redefinition_of_method :to_time

  # Returns +self+.
  def to_time
    self
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activesupport-7.2.0.beta1 lib/active_support/core_ext/time/compatibility.rb