Sha256: 75630046289cbbbbc7717c514bae180d8bde9428c5e8dc47535aac581267ebf5

Contents?: true

Size: 591 Bytes

Versions: 12

Compression:

Stored size: 591 Bytes

Contents

require 'active_support/core_ext/module/attribute_accessors'

module DateAndTime
  module Compatibility
    # If true, +to_time+ preserves the timezone offset of receiver.
    #
    # NOTE: With Ruby 2.4+ the default for +to_time+ changed from
    # converting to the local system time, to preserving the offset
    # of the receiver. For backwards compatibility we're overriding
    # this behavior, but new apps will have an initializer that sets
    # this to true, because the new behavior is preferred.
    mattr_accessor(:preserve_timezone, instance_writer: false) { false }
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/activesupport-5.0.7.1/lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.0.7.2 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.0.7.1 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.0.7 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.0.6 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.0.6.rc1 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.0.5 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.0.5.rc2 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.0.5.rc1 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.0.4 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.0.4.rc1 lib/active_support/core_ext/date_and_time/compatibility.rb
activesupport-5.0.3 lib/active_support/core_ext/date_and_time/compatibility.rb