lib/active_support.rb in activesupport-6.1.7.10 vs lib/active_support.rb in activesupport-7.0.0.alpha1

- old
+ new

@@ -1,9 +1,9 @@ # frozen_string_literal: true #-- -# Copyright (c) 2005-2022 David Heinemeier Hansson +# Copyright (c) 2005-2021 David Heinemeier Hansson # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, @@ -85,11 +85,20 @@ NumberHelper.eager_load! end cattr_accessor :test_order # :nodoc: + cattr_accessor :test_parallelization_threshold, default: 50 # :nodoc: + def self.cache_format_version + Cache.format_version + end + + def self.cache_format_version=(value) + Cache.format_version = value + end + def self.to_time_preserves_timezone DateAndTime::Compatibility.preserve_timezone end def self.to_time_preserves_timezone=(value) @@ -100,9 +109,13 @@ DateAndTime::Compatibility.utc_to_local_returns_utc_offset_times end def self.utc_to_local_returns_utc_offset_times=(value) DateAndTime::Compatibility.utc_to_local_returns_utc_offset_times = value + end + + def self.current_attributes_use_thread_variables=(value) + CurrentAttributes._use_thread_variables = value end end autoload :I18n, "active_support/i18n"