CINXE.COM

ActiveSupport

<!DOCTYPE html> <html lang="en"> <head> <title>ActiveSupport</title> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width,initial-scale=1"> <link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" /> <link rel="stylesheet" href="../css/panel.css" type="text/css" media="screen" /> <link rel="stylesheet" href="../css/main.css" type="text/css" media="screen" /> <link rel="stylesheet" href="../css/github.css" type="text/css" media="screen" /> <script src="../js/jquery-3.5.1.min.js" type="text/javascript" charset="utf-8"></script> <script src="../js/main.js" type="text/javascript" charset="utf-8"></script> <script src="../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script> <script src="../js/turbolinks.js" type="text/javascript" charset="utf-8"></script> <script src="../js/search_index.js" type="text/javascript" charset="utf-8"></script> <script src="../js/searcher.js" type="text/javascript" charset="utf-8"></script> <script src="../panel/tree.js" type="text/javascript" charset="utf-8"></script> <script src="../js/searchdoc.js" type="text/javascript" charset="utf-8"></script> <meta name="data-rel-prefix" content="../"> <meta name="data-tree-keys" content='["ActiveSupport"]'> <meta property="og:title" value="ActiveSupport"> <meta name="description" content="Active Support – Utility classes and Ruby extensions from Rails Active Support is a collection of utility classes and standard library extensions that were found useful for the Rails framework."> <meta property="og:description" content="Active Support – Utility classes and Ruby extensions from Rails Active Support is a collection of utility classes and standard library extensions that were found useful for the Rails framework."> <meta name="keywords" content="ActiveSupport class, eager_load!, cache_format_version, cache_format_version=, to_time_preserves_timezone, to_time_preserves_timezone=, utc_to_local_returns_utc_offset_times, utc_to_local_returns_utc_offset_times=, gem_version, version"> </head> <body> <a class="sr-only sr-only-focusable" href="#content" data-turbolinks="false">Skip to Content</a> <a class="sr-only sr-only-focusable" href="#search" data-turbolinks="false">Skip to Search</a> <input type="checkbox" id="hamburger" class="panel_checkbox"> <label class="panel_mobile_button" for="hamburger"><span></span> Menu</label> <nav class="panel panel_tree" id="panel" data-turbolinks-permanent> <div class="header"> <input type="text" placeholder="Search (/) for a class, method, ..." autosave="searchdoc" results="10" id="search" autocomplete="off" tabindex="-1" /> <label class="panel_mobile_button_close" for="hamburger"><span></span> Close</label> </div> <div class="tree"> <ul> </ul> </div> <div class="result"> <ul> </ul> </div> <a href="links.html" id="links">index</a> </nav> <div class="banner"> <span>Ruby on Rails 8.0.0</span><br /> <h2> <span class="type">Module</span> ActiveSupport </h2> <ul class="files"> <li><a href="../files/activesupport/lib/active_support_rb.html">activesupport/lib/active_support.rb</a></li> <li><a href="../files/activesupport/lib/active_support/actionable_error_rb.html">activesupport/lib/active_support/actionable_error.rb</a></li> <li><a href="../files/activesupport/lib/active_support/array_inquirer_rb.html">activesupport/lib/active_support/array_inquirer.rb</a></li> <li><a href="../files/activesupport/lib/active_support/backtrace_cleaner_rb.html">activesupport/lib/active_support/backtrace_cleaner.rb</a></li> <li><a href="../files/activesupport/lib/active_support/benchmark_rb.html">activesupport/lib/active_support/benchmark.rb</a></li> <li><a href="../files/activesupport/lib/active_support/benchmarkable_rb.html">activesupport/lib/active_support/benchmarkable.rb</a></li> <li><a href="../files/activesupport/lib/active_support/broadcast_logger_rb.html">activesupport/lib/active_support/broadcast_logger.rb</a></li> <li><a href="../files/activesupport/lib/active_support/cache_rb.html">activesupport/lib/active_support/cache.rb</a></li> <li><a href="../files/activesupport/lib/active_support/cache/coder_rb.html">activesupport/lib/active_support/cache/coder.rb</a></li> <li><a href="../files/activesupport/lib/active_support/cache/entry_rb.html">activesupport/lib/active_support/cache/entry.rb</a></li> <li><a href="../files/activesupport/lib/active_support/cache/file_store_rb.html">activesupport/lib/active_support/cache/file_store.rb</a></li> <li><a href="../files/activesupport/lib/active_support/cache/mem_cache_store_rb.html">activesupport/lib/active_support/cache/mem_cache_store.rb</a></li> <li><a href="../files/activesupport/lib/active_support/cache/memory_store_rb.html">activesupport/lib/active_support/cache/memory_store.rb</a></li> <li><a href="../files/activesupport/lib/active_support/cache/null_store_rb.html">activesupport/lib/active_support/cache/null_store.rb</a></li> <li><a href="../files/activesupport/lib/active_support/cache/redis_cache_store_rb.html">activesupport/lib/active_support/cache/redis_cache_store.rb</a></li> <li><a href="../files/activesupport/lib/active_support/cache/serializer_with_fallback_rb.html">activesupport/lib/active_support/cache/serializer_with_fallback.rb</a></li> <li><a href="../files/activesupport/lib/active_support/cache/strategy/local_cache_rb.html">activesupport/lib/active_support/cache/strategy/local_cache.rb</a></li> <li><a href="../files/activesupport/lib/active_support/cache/strategy/local_cache_middleware_rb.html">activesupport/lib/active_support/cache/strategy/local_cache_middleware.rb</a></li> <li><a href="../files/activesupport/lib/active_support/callbacks_rb.html">activesupport/lib/active_support/callbacks.rb</a></li> <li><a href="../files/activesupport/lib/active_support/class_attribute_rb.html">activesupport/lib/active_support/class_attribute.rb</a></li> <li><a href="../files/activesupport/lib/active_support/code_generator_rb.html">activesupport/lib/active_support/code_generator.rb</a></li> <li><a href="../files/activesupport/lib/active_support/concern_rb.html">activesupport/lib/active_support/concern.rb</a></li> <li><a href="../files/activesupport/lib/active_support/concurrency/load_interlock_aware_monitor_rb.html">activesupport/lib/active_support/concurrency/load_interlock_aware_monitor.rb</a></li> <li><a href="../files/activesupport/lib/active_support/concurrency/null_lock_rb.html">activesupport/lib/active_support/concurrency/null_lock.rb</a></li> <li><a href="../files/activesupport/lib/active_support/concurrency/share_lock_rb.html">activesupport/lib/active_support/concurrency/share_lock.rb</a></li> <li><a href="../files/activesupport/lib/active_support/configurable_rb.html">activesupport/lib/active_support/configurable.rb</a></li> <li><a href="../files/activesupport/lib/active_support/configuration_file_rb.html">activesupport/lib/active_support/configuration_file.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/array/conversions_rb.html">activesupport/lib/active_support/core_ext/array/conversions.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/array/inquiry_rb.html">activesupport/lib/active_support/core_ext/array/inquiry.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/benchmark_rb.html">activesupport/lib/active_support/core_ext/benchmark.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/big_decimal/conversions_rb.html">activesupport/lib/active_support/core_ext/big_decimal/conversions.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/class/attribute_rb.html">activesupport/lib/active_support/core_ext/class/attribute.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/class/subclasses_rb.html">activesupport/lib/active_support/core_ext/class/subclasses.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/date/calculations_rb.html">activesupport/lib/active_support/core_ext/date/calculations.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/date_and_time/zones_rb.html">activesupport/lib/active_support/core_ext/date_and_time/zones.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/date_time/conversions_rb.html">activesupport/lib/active_support/core_ext/date_time/conversions.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/enumerable_rb.html">activesupport/lib/active_support/core_ext/enumerable.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/erb/util_rb.html">activesupport/lib/active_support/core_ext/erb/util.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/hash/conversions_rb.html">activesupport/lib/active_support/core_ext/hash/conversions.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/hash/indifferent_access_rb.html">activesupport/lib/active_support/core_ext/hash/indifferent_access.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/integer/inflections_rb.html">activesupport/lib/active_support/core_ext/integer/inflections.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/integer/time_rb.html">activesupport/lib/active_support/core_ext/integer/time.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/module/delegation_rb.html">activesupport/lib/active_support/core_ext/module/delegation.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/module/deprecation_rb.html">activesupport/lib/active_support/core_ext/module/deprecation.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/module/introspection_rb.html">activesupport/lib/active_support/core_ext/module/introspection.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/numeric/conversions_rb.html">activesupport/lib/active_support/core_ext/numeric/conversions.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/numeric/time_rb.html">activesupport/lib/active_support/core_ext/numeric/time.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/object/json_rb.html">activesupport/lib/active_support/core_ext/object/json.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/object/try_rb.html">activesupport/lib/active_support/core_ext/object/try.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/object/with_options_rb.html">activesupport/lib/active_support/core_ext/object/with_options.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/range/compare_range_rb.html">activesupport/lib/active_support/core_ext/range/compare_range.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/range/conversions_rb.html">activesupport/lib/active_support/core_ext/range/conversions.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/range/each_rb.html">activesupport/lib/active_support/core_ext/range/each.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/string/inflections_rb.html">activesupport/lib/active_support/core_ext/string/inflections.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/string/inquiry_rb.html">activesupport/lib/active_support/core_ext/string/inquiry.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/string/multibyte_rb.html">activesupport/lib/active_support/core_ext/string/multibyte.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/string/output_safety_rb.html">activesupport/lib/active_support/core_ext/string/output_safety.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/time/calculations_rb.html">activesupport/lib/active_support/core_ext/time/calculations.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/time/conversions_rb.html">activesupport/lib/active_support/core_ext/time/conversions.rb</a></li> <li><a href="../files/activesupport/lib/active_support/core_ext/time/zones_rb.html">activesupport/lib/active_support/core_ext/time/zones.rb</a></li> <li><a href="../files/activesupport/lib/active_support/current_attributes_rb.html">activesupport/lib/active_support/current_attributes.rb</a></li> <li><a href="../files/activesupport/lib/active_support/current_attributes/test_helper_rb.html">activesupport/lib/active_support/current_attributes/test_helper.rb</a></li> <li><a href="../files/activesupport/lib/active_support/deep_mergeable_rb.html">activesupport/lib/active_support/deep_mergeable.rb</a></li> <li><a href="../files/activesupport/lib/active_support/delegation_rb.html">activesupport/lib/active_support/delegation.rb</a></li> <li><a href="../files/activesupport/lib/active_support/dependencies_rb.html">activesupport/lib/active_support/dependencies.rb</a></li> <li><a href="../files/activesupport/lib/active_support/dependencies/autoload_rb.html">activesupport/lib/active_support/dependencies/autoload.rb</a></li> <li><a href="../files/activesupport/lib/active_support/dependencies/interlock_rb.html">activesupport/lib/active_support/dependencies/interlock.rb</a></li> <li><a href="../files/activesupport/lib/active_support/dependencies/require_dependency_rb.html">activesupport/lib/active_support/dependencies/require_dependency.rb</a></li> <li><a href="../files/activesupport/lib/active_support/deprecation_rb.html">activesupport/lib/active_support/deprecation.rb</a></li> <li><a href="../files/activesupport/lib/active_support/deprecation/behaviors_rb.html">activesupport/lib/active_support/deprecation/behaviors.rb</a></li> <li><a href="../files/activesupport/lib/active_support/deprecation/constant_accessor_rb.html">activesupport/lib/active_support/deprecation/constant_accessor.rb</a></li> <li><a href="../files/activesupport/lib/active_support/deprecation/deprecators_rb.html">activesupport/lib/active_support/deprecation/deprecators.rb</a></li> <li><a href="../files/activesupport/lib/active_support/deprecation/disallowed_rb.html">activesupport/lib/active_support/deprecation/disallowed.rb</a></li> <li><a href="../files/activesupport/lib/active_support/deprecation/method_wrappers_rb.html">activesupport/lib/active_support/deprecation/method_wrappers.rb</a></li> <li><a href="../files/activesupport/lib/active_support/deprecation/proxy_wrappers_rb.html">activesupport/lib/active_support/deprecation/proxy_wrappers.rb</a></li> <li><a href="../files/activesupport/lib/active_support/deprecation/reporting_rb.html">activesupport/lib/active_support/deprecation/reporting.rb</a></li> <li><a href="../files/activesupport/lib/active_support/deprecator_rb.html">activesupport/lib/active_support/deprecator.rb</a></li> <li><a href="../files/activesupport/lib/active_support/descendants_tracker_rb.html">activesupport/lib/active_support/descendants_tracker.rb</a></li> <li><a href="../files/activesupport/lib/active_support/digest_rb.html">activesupport/lib/active_support/digest.rb</a></li> <li><a href="../files/activesupport/lib/active_support/duration_rb.html">activesupport/lib/active_support/duration.rb</a></li> <li><a href="../files/activesupport/lib/active_support/duration/iso8601_parser_rb.html">activesupport/lib/active_support/duration/iso8601_parser.rb</a></li> <li><a href="../files/activesupport/lib/active_support/duration/iso8601_serializer_rb.html">activesupport/lib/active_support/duration/iso8601_serializer.rb</a></li> <li><a href="../files/activesupport/lib/active_support/encrypted_configuration_rb.html">activesupport/lib/active_support/encrypted_configuration.rb</a></li> <li><a href="../files/activesupport/lib/active_support/encrypted_file_rb.html">activesupport/lib/active_support/encrypted_file.rb</a></li> <li><a href="../files/activesupport/lib/active_support/environment_inquirer_rb.html">activesupport/lib/active_support/environment_inquirer.rb</a></li> <li><a href="../files/activesupport/lib/active_support/error_reporter_rb.html">activesupport/lib/active_support/error_reporter.rb</a></li> <li><a href="../files/activesupport/lib/active_support/error_reporter/test_helper_rb.html">activesupport/lib/active_support/error_reporter/test_helper.rb</a></li> <li><a href="../files/activesupport/lib/active_support/evented_file_update_checker_rb.html">activesupport/lib/active_support/evented_file_update_checker.rb</a></li> <li><a href="../files/activesupport/lib/active_support/execution_context_rb.html">activesupport/lib/active_support/execution_context.rb</a></li> <li><a href="../files/activesupport/lib/active_support/execution_context/test_helper_rb.html">activesupport/lib/active_support/execution_context/test_helper.rb</a></li> <li><a href="../files/activesupport/lib/active_support/execution_wrapper_rb.html">activesupport/lib/active_support/execution_wrapper.rb</a></li> <li><a href="../files/activesupport/lib/active_support/executor_rb.html">activesupport/lib/active_support/executor.rb</a></li> <li><a href="../files/activesupport/lib/active_support/executor/test_helper_rb.html">activesupport/lib/active_support/executor/test_helper.rb</a></li> <li><a href="../files/activesupport/lib/active_support/file_update_checker_rb.html">activesupport/lib/active_support/file_update_checker.rb</a></li> <li><a href="../files/activesupport/lib/active_support/fork_tracker_rb.html">activesupport/lib/active_support/fork_tracker.rb</a></li> <li><a href="../files/activesupport/lib/active_support/gem_version_rb.html">activesupport/lib/active_support/gem_version.rb</a></li> <li><a href="../files/activesupport/lib/active_support/gzip_rb.html">activesupport/lib/active_support/gzip.rb</a></li> <li><a href="../files/activesupport/lib/active_support/hash_with_indifferent_access_rb.html">activesupport/lib/active_support/hash_with_indifferent_access.rb</a></li> <li><a href="../files/activesupport/lib/active_support/html_safe_translation_rb.html">activesupport/lib/active_support/html_safe_translation.rb</a></li> <li><a href="../files/activesupport/lib/active_support/inflections_rb.html">activesupport/lib/active_support/inflections.rb</a></li> <li><a href="../files/activesupport/lib/active_support/inflector/inflections_rb.html">activesupport/lib/active_support/inflector/inflections.rb</a></li> <li><a href="../files/activesupport/lib/active_support/inflector/methods_rb.html">activesupport/lib/active_support/inflector/methods.rb</a></li> <li><a href="../files/activesupport/lib/active_support/inflector/transliterate_rb.html">activesupport/lib/active_support/inflector/transliterate.rb</a></li> <li><a href="../files/activesupport/lib/active_support/isolated_execution_state_rb.html">activesupport/lib/active_support/isolated_execution_state.rb</a></li> <li><a href="../files/activesupport/lib/active_support/json/decoding_rb.html">activesupport/lib/active_support/json/decoding.rb</a></li> <li><a href="../files/activesupport/lib/active_support/json/encoding_rb.html">activesupport/lib/active_support/json/encoding.rb</a></li> <li><a href="../files/activesupport/lib/active_support/key_generator_rb.html">activesupport/lib/active_support/key_generator.rb</a></li> <li><a href="../files/activesupport/lib/active_support/lazy_load_hooks_rb.html">activesupport/lib/active_support/lazy_load_hooks.rb</a></li> <li><a href="../files/activesupport/lib/active_support/log_subscriber_rb.html">activesupport/lib/active_support/log_subscriber.rb</a></li> <li><a href="../files/activesupport/lib/active_support/log_subscriber/test_helper_rb.html">activesupport/lib/active_support/log_subscriber/test_helper.rb</a></li> <li><a href="../files/activesupport/lib/active_support/logger_rb.html">activesupport/lib/active_support/logger.rb</a></li> <li><a href="../files/activesupport/lib/active_support/logger_silence_rb.html">activesupport/lib/active_support/logger_silence.rb</a></li> <li><a href="../files/activesupport/lib/active_support/logger_thread_safe_level_rb.html">activesupport/lib/active_support/logger_thread_safe_level.rb</a></li> <li><a href="../files/activesupport/lib/active_support/message_encryptor_rb.html">activesupport/lib/active_support/message_encryptor.rb</a></li> <li><a href="../files/activesupport/lib/active_support/message_encryptors_rb.html">activesupport/lib/active_support/message_encryptors.rb</a></li> <li><a href="../files/activesupport/lib/active_support/message_pack_rb.html">activesupport/lib/active_support/message_pack.rb</a></li> <li><a href="../files/activesupport/lib/active_support/message_pack/cache_serializer_rb.html">activesupport/lib/active_support/message_pack/cache_serializer.rb</a></li> <li><a href="../files/activesupport/lib/active_support/message_pack/extensions_rb.html">activesupport/lib/active_support/message_pack/extensions.rb</a></li> <li><a href="../files/activesupport/lib/active_support/message_pack/serializer_rb.html">activesupport/lib/active_support/message_pack/serializer.rb</a></li> <li><a href="../files/activesupport/lib/active_support/message_verifier_rb.html">activesupport/lib/active_support/message_verifier.rb</a></li> <li><a href="../files/activesupport/lib/active_support/message_verifiers_rb.html">activesupport/lib/active_support/message_verifiers.rb</a></li> <li><a href="../files/activesupport/lib/active_support/messages/codec_rb.html">activesupport/lib/active_support/messages/codec.rb</a></li> <li><a href="../files/activesupport/lib/active_support/messages/metadata_rb.html">activesupport/lib/active_support/messages/metadata.rb</a></li> <li><a href="../files/activesupport/lib/active_support/messages/rotation_configuration_rb.html">activesupport/lib/active_support/messages/rotation_configuration.rb</a></li> <li><a href="../files/activesupport/lib/active_support/messages/rotation_coordinator_rb.html">activesupport/lib/active_support/messages/rotation_coordinator.rb</a></li> <li><a href="../files/activesupport/lib/active_support/messages/rotator_rb.html">activesupport/lib/active_support/messages/rotator.rb</a></li> <li><a href="../files/activesupport/lib/active_support/messages/serializer_with_fallback_rb.html">activesupport/lib/active_support/messages/serializer_with_fallback.rb</a></li> <li><a href="../files/activesupport/lib/active_support/multibyte_rb.html">activesupport/lib/active_support/multibyte.rb</a></li> <li><a href="../files/activesupport/lib/active_support/multibyte/chars_rb.html">activesupport/lib/active_support/multibyte/chars.rb</a></li> <li><a href="../files/activesupport/lib/active_support/multibyte/unicode_rb.html">activesupport/lib/active_support/multibyte/unicode.rb</a></li> <li><a href="../files/activesupport/lib/active_support/notifications_rb.html">activesupport/lib/active_support/notifications.rb</a></li> <li><a href="../files/activesupport/lib/active_support/notifications/fanout_rb.html">activesupport/lib/active_support/notifications/fanout.rb</a></li> <li><a href="../files/activesupport/lib/active_support/notifications/instrumenter_rb.html">activesupport/lib/active_support/notifications/instrumenter.rb</a></li> <li><a href="../files/activesupport/lib/active_support/number_helper_rb.html">activesupport/lib/active_support/number_helper.rb</a></li> <li><a href="../files/activesupport/lib/active_support/number_helper/number_converter_rb.html">activesupport/lib/active_support/number_helper/number_converter.rb</a></li> <li><a href="../files/activesupport/lib/active_support/number_helper/number_to_currency_converter_rb.html">activesupport/lib/active_support/number_helper/number_to_currency_converter.rb</a></li> <li><a href="../files/activesupport/lib/active_support/number_helper/number_to_delimited_converter_rb.html">activesupport/lib/active_support/number_helper/number_to_delimited_converter.rb</a></li> <li><a href="../files/activesupport/lib/active_support/number_helper/number_to_human_converter_rb.html">activesupport/lib/active_support/number_helper/number_to_human_converter.rb</a></li> <li><a href="../files/activesupport/lib/active_support/number_helper/number_to_human_size_converter_rb.html">activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb</a></li> <li><a href="../files/activesupport/lib/active_support/number_helper/number_to_percentage_converter_rb.html">activesupport/lib/active_support/number_helper/number_to_percentage_converter.rb</a></li> <li><a href="../files/activesupport/lib/active_support/number_helper/number_to_phone_converter_rb.html">activesupport/lib/active_support/number_helper/number_to_phone_converter.rb</a></li> <li><a href="../files/activesupport/lib/active_support/number_helper/number_to_rounded_converter_rb.html">activesupport/lib/active_support/number_helper/number_to_rounded_converter.rb</a></li> <li><a href="../files/activesupport/lib/active_support/number_helper/rounding_helper_rb.html">activesupport/lib/active_support/number_helper/rounding_helper.rb</a></li> <li><a href="../files/activesupport/lib/active_support/option_merger_rb.html">activesupport/lib/active_support/option_merger.rb</a></li> <li><a href="../files/activesupport/lib/active_support/ordered_hash_rb.html">activesupport/lib/active_support/ordered_hash.rb</a></li> <li><a href="../files/activesupport/lib/active_support/ordered_options_rb.html">activesupport/lib/active_support/ordered_options.rb</a></li> <li><a href="../files/activesupport/lib/active_support/parameter_filter_rb.html">activesupport/lib/active_support/parameter_filter.rb</a></li> <li><a href="../files/activesupport/lib/active_support/railtie_rb.html">activesupport/lib/active_support/railtie.rb</a></li> <li><a href="../files/activesupport/lib/active_support/reloader_rb.html">activesupport/lib/active_support/reloader.rb</a></li> <li><a href="../files/activesupport/lib/active_support/rescuable_rb.html">activesupport/lib/active_support/rescuable.rb</a></li> <li><a href="../files/activesupport/lib/active_support/secure_compare_rotator_rb.html">activesupport/lib/active_support/secure_compare_rotator.rb</a></li> <li><a href="../files/activesupport/lib/active_support/security_utils_rb.html">activesupport/lib/active_support/security_utils.rb</a></li> <li><a href="../files/activesupport/lib/active_support/string_inquirer_rb.html">activesupport/lib/active_support/string_inquirer.rb</a></li> <li><a href="../files/activesupport/lib/active_support/subscriber_rb.html">activesupport/lib/active_support/subscriber.rb</a></li> <li><a href="../files/activesupport/lib/active_support/syntax_error_proxy_rb.html">activesupport/lib/active_support/syntax_error_proxy.rb</a></li> <li><a href="../files/activesupport/lib/active_support/tagged_logging_rb.html">activesupport/lib/active_support/tagged_logging.rb</a></li> <li><a href="../files/activesupport/lib/active_support/test_case_rb.html">activesupport/lib/active_support/test_case.rb</a></li> <li><a href="../files/activesupport/lib/active_support/testing/assertions_rb.html">activesupport/lib/active_support/testing/assertions.rb</a></li> <li><a href="../files/activesupport/lib/active_support/testing/constant_lookup_rb.html">activesupport/lib/active_support/testing/constant_lookup.rb</a></li> <li><a href="../files/activesupport/lib/active_support/testing/constant_stubbing_rb.html">activesupport/lib/active_support/testing/constant_stubbing.rb</a></li> <li><a href="../files/activesupport/lib/active_support/testing/declarative_rb.html">activesupport/lib/active_support/testing/declarative.rb</a></li> <li><a href="../files/activesupport/lib/active_support/testing/deprecation_rb.html">activesupport/lib/active_support/testing/deprecation.rb</a></li> <li><a href="../files/activesupport/lib/active_support/testing/error_reporter_assertions_rb.html">activesupport/lib/active_support/testing/error_reporter_assertions.rb</a></li> <li><a href="../files/activesupport/lib/active_support/testing/file_fixtures_rb.html">activesupport/lib/active_support/testing/file_fixtures.rb</a></li> <li><a href="../files/activesupport/lib/active_support/testing/isolation_rb.html">activesupport/lib/active_support/testing/isolation.rb</a></li> <li><a href="../files/activesupport/lib/active_support/testing/method_call_assertions_rb.html">activesupport/lib/active_support/testing/method_call_assertions.rb</a></li> <li><a href="../files/activesupport/lib/active_support/testing/parallelization_rb.html">activesupport/lib/active_support/testing/parallelization.rb</a></li> <li><a href="../files/activesupport/lib/active_support/testing/parallelization/server_rb.html">activesupport/lib/active_support/testing/parallelization/server.rb</a></li> <li><a href="../files/activesupport/lib/active_support/testing/parallelization/worker_rb.html">activesupport/lib/active_support/testing/parallelization/worker.rb</a></li> <li><a href="../files/activesupport/lib/active_support/testing/parallelize_executor_rb.html">activesupport/lib/active_support/testing/parallelize_executor.rb</a></li> <li><a href="../files/activesupport/lib/active_support/testing/setup_and_teardown_rb.html">activesupport/lib/active_support/testing/setup_and_teardown.rb</a></li> <li><a href="../files/activesupport/lib/active_support/testing/stream_rb.html">activesupport/lib/active_support/testing/stream.rb</a></li> <li><a href="../files/activesupport/lib/active_support/testing/strict_warnings_rb.html">activesupport/lib/active_support/testing/strict_warnings.rb</a></li> <li><a href="../files/activesupport/lib/active_support/testing/tagged_logging_rb.html">activesupport/lib/active_support/testing/tagged_logging.rb</a></li> <li><a href="../files/activesupport/lib/active_support/testing/tests_without_assertions_rb.html">activesupport/lib/active_support/testing/tests_without_assertions.rb</a></li> <li><a href="../files/activesupport/lib/active_support/testing/time_helpers_rb.html">activesupport/lib/active_support/testing/time_helpers.rb</a></li> <li><a href="../files/activesupport/lib/active_support/time_rb.html">activesupport/lib/active_support/time.rb</a></li> <li><a href="../files/activesupport/lib/active_support/time_with_zone_rb.html">activesupport/lib/active_support/time_with_zone.rb</a></li> <li><a href="../files/activesupport/lib/active_support/values/time_zone_rb.html">activesupport/lib/active_support/values/time_zone.rb</a></li> <li><a href="../files/activesupport/lib/active_support/version_rb.html">activesupport/lib/active_support/version.rb</a></li> <li><a href="../files/activesupport/lib/active_support/xml_mini_rb.html">activesupport/lib/active_support/xml_mini.rb</a></li> <li><a href="../files/activesupport/lib/active_support/xml_mini/jdom_rb.html">activesupport/lib/active_support/xml_mini/jdom.rb</a></li> <li><a href="../files/activesupport/lib/active_support/xml_mini/libxml_rb.html">activesupport/lib/active_support/xml_mini/libxml.rb</a></li> <li><a href="../files/activesupport/lib/active_support/xml_mini/libxmlsax_rb.html">activesupport/lib/active_support/xml_mini/libxmlsax.rb</a></li> <li><a href="../files/activesupport/lib/active_support/xml_mini/nokogiri_rb.html">activesupport/lib/active_support/xml_mini/nokogiri.rb</a></li> <li><a href="../files/activesupport/lib/active_support/xml_mini/nokogirisax_rb.html">activesupport/lib/active_support/xml_mini/nokogirisax.rb</a></li> <li><a href="../files/activesupport/lib/active_support/xml_mini/rexml_rb.html">activesupport/lib/active_support/xml_mini/rexml.rb</a></li> <li><a href="../files/railties/lib/rails_rb.html">railties/lib/rails.rb</a></li> <li><a href="../files/railties/lib/rails/application_rb.html">railties/lib/rails/application.rb</a></li> <li><a href="../files/railties/lib/rails/application/bootstrap_rb.html">railties/lib/rails/application/bootstrap.rb</a></li> <li><a href="../files/railties/lib/rails/application/configuration_rb.html">railties/lib/rails/application/configuration.rb</a></li> <li><a href="../files/railties/lib/rails/application/finisher_rb.html">railties/lib/rails/application/finisher.rb</a></li> <li><a href="../files/railties/lib/rails/application/routes_reloader_rb.html">railties/lib/rails/application/routes_reloader.rb</a></li> <li><a href="../files/railties/lib/rails/commands/server/server_command_rb.html">railties/lib/rails/commands/server/server_command.rb</a></li> <li><a href="../files/railties/lib/rails/deprecator_rb.html">railties/lib/rails/deprecator.rb</a></li> <li><a href="../files/railties/lib/rails/engine_rb.html">railties/lib/rails/engine.rb</a></li> <li><a href="../files/railties/lib/rails/generators/rails/credentials/credentials_generator_rb.html">railties/lib/rails/generators/rails/credentials/credentials_generator.rb</a></li> <li><a href="../files/railties/lib/rails/generators/rails/encrypted_file/encrypted_file_generator_rb.html">railties/lib/rails/generators/rails/encrypted_file/encrypted_file_generator.rb</a></li> <li><a href="../files/railties/lib/rails/generators/rails/encryption_key_file/encryption_key_file_generator_rb.html">railties/lib/rails/generators/rails/encryption_key_file/encryption_key_file_generator.rb</a></li> <li><a href="../files/railties/lib/rails/generators/rails/master_key/master_key_generator_rb.html">railties/lib/rails/generators/rails/master_key/master_key_generator.rb</a></li> <li><a href="../files/railties/lib/rails/rack/logger_rb.html">railties/lib/rails/rack/logger.rb</a></li> <li><a href="../files/railties/lib/rails/railtie_rb.html">railties/lib/rails/railtie.rb</a></li> <li><a href="../files/railties/lib/rails/zeitwerk_checker_rb.html">railties/lib/rails/zeitwerk_checker.rb</a></li> </ul> <div id="version-badge">v8.0.0</div> </div> <main id="bodyContent"> <div id="content"> <div class="description"> <h1 id="module-ActiveSupport-label-Active+Support+--+Utility+classes+and+Ruby+extensions+from+Rails">Active Support – Utility classes and Ruby extensions from Rails</h1> <p>Active Support is a collection of utility classes and standard library extensions that were found useful for the Rails framework. These additions reside in this package so they can be loaded as needed in Ruby projects outside of Rails.</p> <p>You can read more about the extensions in the <a href="https://guides.rubyonrails.org/active_support_core_extensions.html">Active Support Core Extensions</a> guide.</p> <h2 id="module-ActiveSupport-label-Download+and+installation">Download and installation</h2> <p>The latest version of Active Support can be installed with RubyGems:</p> <pre><code>$ gem install activesupport </code></pre> <p>Source code can be downloaded as part of the Rails project on GitHub:</p> <ul><li> <p><a href="https://github.com/rails/rails/tree/main/activesupport">github.com/rails/rails/tree/main/activesupport</a></p> </li></ul> <h2 id="module-ActiveSupport-label-License">License</h2> <p>Active Support is released under the MIT license:</p> <ul><li> <p><a href="https://opensource.org/licenses/MIT">opensource.org/licenses/MIT</a></p> </li></ul> <h2 id="module-ActiveSupport-label-Support">Support</h2> <p>API documentation is at:</p> <ul><li> <p><a href="https://api.rubyonrails.org">api.rubyonrails.org</a></p> </li></ul> <p>Bug reports for the Ruby on Rails project can be filed here:</p> <ul><li> <p><a href="https://github.com/rails/rails/issues">github.com/rails/rails/issues</a></p> </li></ul> <p>Feature requests should be discussed on the rails-core mailing list here:</p> <ul><li> <p><a href="https://discuss.rubyonrails.org/c/rubyonrails-core">discuss.rubyonrails.org/c/rubyonrails-core</a></p> </li></ul> </div> <!-- Namespace --> <div class="sectiontitle">Namespace</div> <ul> <li> <span class="type">MODULE</span> <a href="ActiveSupport/ActionableError.html">ActiveSupport::ActionableError</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/Autoload.html">ActiveSupport::Autoload</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/Benchmarkable.html">ActiveSupport::Benchmarkable</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/Cache.html">ActiveSupport::Cache</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/Callbacks.html">ActiveSupport::Callbacks</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/CompareWithRange.html">ActiveSupport::CompareWithRange</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/Concern.html">ActiveSupport::Concern</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/Concurrency.html">ActiveSupport::Concurrency</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/Configurable.html">ActiveSupport::Configurable</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/CoreExt.html">ActiveSupport::CoreExt</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/Dependencies.html">ActiveSupport::Dependencies</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/DescendantsTracker.html">ActiveSupport::DescendantsTracker</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/EnumerableCoreExt.html">ActiveSupport::EnumerableCoreExt</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/ForkTracker.html">ActiveSupport::ForkTracker</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/Gzip.html">ActiveSupport::Gzip</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/Inflector.html">ActiveSupport::Inflector</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/JSON.html">ActiveSupport::JSON</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/LazyLoadHooks.html">ActiveSupport::LazyLoadHooks</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/LoggerSilence.html">ActiveSupport::LoggerSilence</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/MessagePack.html">ActiveSupport::MessagePack</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/Messages.html">ActiveSupport::Messages</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/Multibyte.html">ActiveSupport::Multibyte</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/Notifications.html">ActiveSupport::Notifications</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/NumberHelper.html">ActiveSupport::NumberHelper</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/NumericWithFormat.html">ActiveSupport::NumericWithFormat</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/RaiseWarnings.html">ActiveSupport::RaiseWarnings</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/RangeWithFormat.html">ActiveSupport::RangeWithFormat</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/Rescuable.html">ActiveSupport::Rescuable</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/SecurityUtils.html">ActiveSupport::SecurityUtils</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/TaggedLogging.html">ActiveSupport::TaggedLogging</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/Testing.html">ActiveSupport::Testing</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/VERSION.html">ActiveSupport::VERSION</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/XmlMini.html">ActiveSupport::XmlMini</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/XmlMini_LibXMLSAX.html">ActiveSupport::XmlMini_LibXMLSAX</a> </li> <li> <span class="type">MODULE</span> <a href="ActiveSupport/XmlMini_NokogiriSAX.html">ActiveSupport::XmlMini_NokogiriSAX</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/ArrayInquirer.html">ActiveSupport::ArrayInquirer</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/BacktraceCleaner.html">ActiveSupport::BacktraceCleaner</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/BroadcastLogger.html">ActiveSupport::BroadcastLogger</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/CachingKeyGenerator.html">ActiveSupport::CachingKeyGenerator</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/CodeGenerator.html">ActiveSupport::CodeGenerator</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/ConfigurationFile.html">ActiveSupport::ConfigurationFile</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/CurrentAttributes.html">ActiveSupport::CurrentAttributes</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/DelegationError.html">ActiveSupport::DelegationError</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/Deprecation.html">ActiveSupport::Deprecation</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/DeprecationException.html">ActiveSupport::DeprecationException</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/Duration.html">ActiveSupport::Duration</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/EncryptedConfiguration.html">ActiveSupport::EncryptedConfiguration</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/EncryptedFile.html">ActiveSupport::EncryptedFile</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/ErrorReporter.html">ActiveSupport::ErrorReporter</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/EventedFileUpdateChecker.html">ActiveSupport::EventedFileUpdateChecker</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/ExecutionWrapper.html">ActiveSupport::ExecutionWrapper</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/Executor.html">ActiveSupport::Executor</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/FileUpdateChecker.html">ActiveSupport::FileUpdateChecker</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/HashWithIndifferentAccess.html">ActiveSupport::HashWithIndifferentAccess</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/InheritableOptions.html">ActiveSupport::InheritableOptions</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/KeyGenerator.html">ActiveSupport::KeyGenerator</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/LogSubscriber.html">ActiveSupport::LogSubscriber</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/Logger.html">ActiveSupport::Logger</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/MessageEncryptor.html">ActiveSupport::MessageEncryptor</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/MessageEncryptors.html">ActiveSupport::MessageEncryptors</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/MessageVerifier.html">ActiveSupport::MessageVerifier</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/MessageVerifiers.html">ActiveSupport::MessageVerifiers</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/OrderedOptions.html">ActiveSupport::OrderedOptions</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/ParameterFilter.html">ActiveSupport::ParameterFilter</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/Reloader.html">ActiveSupport::Reloader</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/SafeBuffer.html">ActiveSupport::SafeBuffer</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/SecureCompareRotator.html">ActiveSupport::SecureCompareRotator</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/StringInquirer.html">ActiveSupport::StringInquirer</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/Subscriber.html">ActiveSupport::Subscriber</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/TestCase.html">ActiveSupport::TestCase</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/TimeWithZone.html">ActiveSupport::TimeWithZone</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/TimeZone.html">ActiveSupport::TimeZone</a> </li> <li> <span class="type">CLASS</span> <a href="ActiveSupport/XMLConverter.html">ActiveSupport::XMLConverter</a> </li> </ul> <!-- Method ref --> <div class="sectiontitle">Methods</div> <dl class="methods"> <dt>C</dt> <dd> <ul> <li> <a href="#method-c-cache_format_version">cache_format_version</a>, </li> <li> <a href="#method-c-cache_format_version-3D">cache_format_version=</a> </li> </ul> </dd> <dt>E</dt> <dd> <ul> <li> <a href="#method-c-eager_load-21">eager_load!</a> </li> </ul> </dd> <dt>G</dt> <dd> <ul> <li> <a href="#method-c-gem_version">gem_version</a> </li> </ul> </dd> <dt>T</dt> <dd> <ul> <li> <a href="#method-c-to_time_preserves_timezone">to_time_preserves_timezone</a>, </li> <li> <a href="#method-c-to_time_preserves_timezone-3D">to_time_preserves_timezone=</a> </li> </ul> </dd> <dt>U</dt> <dd> <ul> <li> <a href="#method-c-utc_to_local_returns_utc_offset_times">utc_to_local_returns_utc_offset_times</a>, </li> <li> <a href="#method-c-utc_to_local_returns_utc_offset_times-3D">utc_to_local_returns_utc_offset_times=</a> </li> </ul> </dd> <dt>V</dt> <dd> <ul> <li> <a href="#method-c-version">version</a> </li> </ul> </dd> </dl> <!-- Methods --> <h2 class="sectiontitle">Class Public methods</h2> <div class="method"> <h3 class="title method-title" id="method-c-cache_format_version"> <b>cache_format_version</b>() <a href="../classes/ActiveSupport.html#method-c-cache_format_version" name="method-c-cache_format_version" class="permalink">Link</a> </h3> <div class="description"> </div> <div class="sourcecode"> <p class="source-link"> Source: <a href="javascript:toggleSource('method-c-cache_format_version_source')" id="l_method-c-cache_format_version_source">show</a> | <a href="https://github.com/rails/rails/blob/dd8f7185faeca6ee968a6e9367f6d8601a83b8db/activesupport/lib/active_support.rb#L106" target="_blank" class="github_url">on GitHub</a> </p> <div id="method-c-cache_format_version_source" class="dyn-source"> <pre><span class="ruby-comment"># File activesupport/lib/active_support.rb, line 106</span> <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">cache_format_version</span> <span class="ruby-constant">Cache</span>.<span class="ruby-identifier">format_version</span> <span class="ruby-keyword">end</span></pre> </div> </div> </div> <div class="method"> <h3 class="title method-title" id="method-c-cache_format_version-3D"> <b>cache_format_version=</b>(value) <a href="../classes/ActiveSupport.html#method-c-cache_format_version-3D" name="method-c-cache_format_version-3D" class="permalink">Link</a> </h3> <div class="description"> </div> <div class="sourcecode"> <p class="source-link"> Source: <a href="javascript:toggleSource('method-c-cache_format_version-3D_source')" id="l_method-c-cache_format_version-3D_source">show</a> | <a href="https://github.com/rails/rails/blob/dd8f7185faeca6ee968a6e9367f6d8601a83b8db/activesupport/lib/active_support.rb#L110" target="_blank" class="github_url">on GitHub</a> </p> <div id="method-c-cache_format_version-3D_source" class="dyn-source"> <pre><span class="ruby-comment"># File activesupport/lib/active_support.rb, line 110</span> <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">cache_format_version=</span>(<span class="ruby-identifier">value</span>) <span class="ruby-constant">Cache</span>.<span class="ruby-identifier">format_version</span> = <span class="ruby-identifier">value</span> <span class="ruby-keyword">end</span></pre> </div> </div> </div> <div class="method"> <h3 class="title method-title" id="method-c-eager_load-21"> <b>eager_load!</b>() <a href="../classes/ActiveSupport.html#method-c-eager_load-21" name="method-c-eager_load-21" class="permalink">Link</a> </h3> <div class="description"> </div> <div class="sourcecode"> <p class="source-link"> Source: <a href="javascript:toggleSource('method-c-eager_load-21_source')" id="l_method-c-eager_load-21_source">show</a> | <a href="https://github.com/rails/rails/blob/dd8f7185faeca6ee968a6e9367f6d8601a83b8db/activesupport/lib/active_support.rb#L94" target="_blank" class="github_url">on GitHub</a> </p> <div id="method-c-eager_load-21_source" class="dyn-source"> <pre><span class="ruby-comment"># File activesupport/lib/active_support.rb, line 94</span> <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">eager_load!</span> <span class="ruby-keyword">super</span> <span class="ruby-constant">NumberHelper</span>.<span class="ruby-identifier">eager_load!</span> <span class="ruby-keyword">end</span></pre> </div> </div> </div> <div class="method"> <h3 class="title method-title" id="method-c-gem_version"> <b>gem_version</b>() <a href="../classes/ActiveSupport.html#method-c-gem_version" name="method-c-gem_version" class="permalink">Link</a> </h3> <div class="description"> <p>Returns the currently loaded version of Active Support as a <code>Gem::Version</code>.</p> </div> <div class="sourcecode"> <p class="source-link"> Source: <a href="javascript:toggleSource('method-c-gem_version_source')" id="l_method-c-gem_version_source">show</a> | <a href="https://github.com/rails/rails/blob/dd8f7185faeca6ee968a6e9367f6d8601a83b8db/activesupport/lib/active_support/gem_version.rb#L5" target="_blank" class="github_url">on GitHub</a> </p> <div id="method-c-gem_version_source" class="dyn-source"> <pre><span class="ruby-comment"># File activesupport/lib/active_support/gem_version.rb, line 5</span> <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">gem_version</span> <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Version</span>.<span class="ruby-identifier">new</span> <span class="ruby-constant">VERSION</span><span class="ruby-operator">::</span><span class="ruby-constant">STRING</span> <span class="ruby-keyword">end</span></pre> </div> </div> </div> <div class="method"> <h3 class="title method-title" id="method-c-to_time_preserves_timezone"> <b>to_time_preserves_timezone</b>() <a href="../classes/ActiveSupport.html#method-c-to_time_preserves_timezone" name="method-c-to_time_preserves_timezone" class="permalink">Link</a> </h3> <div class="description"> </div> <div class="sourcecode"> <p class="source-link"> Source: <a href="javascript:toggleSource('method-c-to_time_preserves_timezone_source')" id="l_method-c-to_time_preserves_timezone_source">show</a> | <a href="https://github.com/rails/rails/blob/dd8f7185faeca6ee968a6e9367f6d8601a83b8db/activesupport/lib/active_support.rb#L114" target="_blank" class="github_url">on GitHub</a> </p> <div id="method-c-to_time_preserves_timezone_source" class="dyn-source"> <pre><span class="ruby-comment"># File activesupport/lib/active_support.rb, line 114</span> <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">to_time_preserves_timezone</span> <span class="ruby-constant">DateAndTime</span><span class="ruby-operator">::</span><span class="ruby-constant">Compatibility</span>.<span class="ruby-identifier">preserve_timezone</span> <span class="ruby-keyword">end</span></pre> </div> </div> </div> <div class="method"> <h3 class="title method-title" id="method-c-to_time_preserves_timezone-3D"> <b>to_time_preserves_timezone=</b>(value) <a href="../classes/ActiveSupport.html#method-c-to_time_preserves_timezone-3D" name="method-c-to_time_preserves_timezone-3D" class="permalink">Link</a> </h3> <div class="description"> </div> <div class="sourcecode"> <p class="source-link"> Source: <a href="javascript:toggleSource('method-c-to_time_preserves_timezone-3D_source')" id="l_method-c-to_time_preserves_timezone-3D_source">show</a> | <a href="https://github.com/rails/rails/blob/dd8f7185faeca6ee968a6e9367f6d8601a83b8db/activesupport/lib/active_support.rb#L118" target="_blank" class="github_url">on GitHub</a> </p> <div id="method-c-to_time_preserves_timezone-3D_source" class="dyn-source"> <pre><span class="ruby-comment"># File activesupport/lib/active_support.rb, line 118</span> <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">to_time_preserves_timezone=</span>(<span class="ruby-identifier">value</span>) <span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">value</span> <span class="ruby-constant">ActiveSupport</span>.<span class="ruby-identifier">deprecator</span>.<span class="ruby-identifier">warn</span>( <span class="ruby-string">&quot;`to_time` will always preserve the receiver timezone rather than system local time in Rails 8.1. &quot;</span> \ <span class="ruby-string">&quot;To opt in to the new behavior, set `config.active_support.to_time_preserves_timezone = :zone`.&quot;</span> ) <span class="ruby-keyword">elsif</span> <span class="ruby-identifier">value</span> <span class="ruby-operator">!=</span> <span class="ruby-value">:zone</span> <span class="ruby-constant">ActiveSupport</span>.<span class="ruby-identifier">deprecator</span>.<span class="ruby-identifier">warn</span>( <span class="ruby-string">&quot;`to_time` will always preserve the full timezone rather than offset of the receiver in Rails 8.1. &quot;</span> \ <span class="ruby-string">&quot;To opt in to the new behavior, set `config.active_support.to_time_preserves_timezone = :zone`.&quot;</span> ) <span class="ruby-keyword">end</span> <span class="ruby-constant">DateAndTime</span><span class="ruby-operator">::</span><span class="ruby-constant">Compatibility</span>.<span class="ruby-identifier">preserve_timezone</span> = <span class="ruby-identifier">value</span> <span class="ruby-keyword">end</span></pre> </div> </div> </div> <div class="method"> <h3 class="title method-title" id="method-c-utc_to_local_returns_utc_offset_times"> <b>utc_to_local_returns_utc_offset_times</b>() <a href="../classes/ActiveSupport.html#method-c-utc_to_local_returns_utc_offset_times" name="method-c-utc_to_local_returns_utc_offset_times" class="permalink">Link</a> </h3> <div class="description"> </div> <div class="sourcecode"> <p class="source-link"> Source: <a href="javascript:toggleSource('method-c-utc_to_local_returns_utc_offset_times_source')" id="l_method-c-utc_to_local_returns_utc_offset_times_source">show</a> | <a href="https://github.com/rails/rails/blob/dd8f7185faeca6ee968a6e9367f6d8601a83b8db/activesupport/lib/active_support.rb#L134" target="_blank" class="github_url">on GitHub</a> </p> <div id="method-c-utc_to_local_returns_utc_offset_times_source" class="dyn-source"> <pre><span class="ruby-comment"># File activesupport/lib/active_support.rb, line 134</span> <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">utc_to_local_returns_utc_offset_times</span> <span class="ruby-constant">DateAndTime</span><span class="ruby-operator">::</span><span class="ruby-constant">Compatibility</span>.<span class="ruby-identifier">utc_to_local_returns_utc_offset_times</span> <span class="ruby-keyword">end</span></pre> </div> </div> </div> <div class="method"> <h3 class="title method-title" id="method-c-utc_to_local_returns_utc_offset_times-3D"> <b>utc_to_local_returns_utc_offset_times=</b>(value) <a href="../classes/ActiveSupport.html#method-c-utc_to_local_returns_utc_offset_times-3D" name="method-c-utc_to_local_returns_utc_offset_times-3D" class="permalink">Link</a> </h3> <div class="description"> </div> <div class="sourcecode"> <p class="source-link"> Source: <a href="javascript:toggleSource('method-c-utc_to_local_returns_utc_offset_times-3D_source')" id="l_method-c-utc_to_local_returns_utc_offset_times-3D_source">show</a> | <a href="https://github.com/rails/rails/blob/dd8f7185faeca6ee968a6e9367f6d8601a83b8db/activesupport/lib/active_support.rb#L138" target="_blank" class="github_url">on GitHub</a> </p> <div id="method-c-utc_to_local_returns_utc_offset_times-3D_source" class="dyn-source"> <pre><span class="ruby-comment"># File activesupport/lib/active_support.rb, line 138</span> <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">utc_to_local_returns_utc_offset_times=</span>(<span class="ruby-identifier">value</span>) <span class="ruby-constant">DateAndTime</span><span class="ruby-operator">::</span><span class="ruby-constant">Compatibility</span>.<span class="ruby-identifier">utc_to_local_returns_utc_offset_times</span> = <span class="ruby-identifier">value</span> <span class="ruby-keyword">end</span></pre> </div> </div> </div> <div class="method"> <h3 class="title method-title" id="method-c-version"> <b>version</b>() <a href="../classes/ActiveSupport.html#method-c-version" name="method-c-version" class="permalink">Link</a> </h3> <div class="description"> <p>Returns the currently loaded version of Active Support as a <code>Gem::Version</code>.</p> </div> <div class="sourcecode"> <p class="source-link"> Source: <a href="javascript:toggleSource('method-c-version_source')" id="l_method-c-version_source">show</a> | <a href="https://github.com/rails/rails/blob/dd8f7185faeca6ee968a6e9367f6d8601a83b8db/activesupport/lib/active_support/version.rb#L7" target="_blank" class="github_url">on GitHub</a> </p> <div id="method-c-version_source" class="dyn-source"> <pre><span class="ruby-comment"># File activesupport/lib/active_support/version.rb, line 7</span> <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">version</span> <span class="ruby-identifier">gem_version</span> <span class="ruby-keyword">end</span></pre> </div> </div> </div> </div> </main> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10