Module: ActiveSupport
Overview
Class Attribute Summary
-
.parse_json_times
(also: #parse_json_times)
rw
Look for and parse
JSON
strings that look like ISO 8601 times. - .cache_format_version rw Internal use only
- .cache_format_version=(value) rw Internal use only
- .test_order (also: #test_order) rw Internal use only
- .test_parallelization_threshold (also: #test_parallelization_threshold) rw Internal use only
- .to_time_preserves_timezone rw Internal use only
- .to_time_preserves_timezone=(value) rw Internal use only
- .utc_to_local_returns_utc_offset_times rw Internal use only
- .utc_to_local_returns_utc_offset_times=(value) rw Internal use only
Class Method Summary
- .eager_load!
-
.gem_version
Returns the currently loaded version of Active Support as a
Gem::Version
. -
.version
Returns the currently loaded version of Active Support as a
Gem::Version
. - .deprecator Internal use only
LazyLoadHooks
- Extended
on_load | Declares a block that will be executed when a Rails component is fully loaded. |
run_load_hooks | Executes all blocks registered to |
execute_hook, with_execution_control |
Autoload
- Extended
Instance Attribute Summary
- #escape_html_entities_in_json rw
- #json_encoder rw
- #parse_json_times rw
- #time_precision rw
- #use_standard_json_time_format rw
- #error_reporter rw Internal use only
- #test_order rw Internal use only
- #test_parallelization_threshold rw Internal use only
Class Attribute Details
.cache_format_version (rw)
This method is for internal use only.
[ GitHub ]
# File 'activesupport/lib/active_support.rb', line 106
def self.cache_format_version Cache.format_version end
.cache_format_version=(value) (rw)
This method is for internal use only.
[ GitHub ]
# File 'activesupport/lib/active_support.rb', line 110
def self.cache_format_version=(value) Cache.format_version = value end
.parse_json_times (rw) Also known as: #parse_json_times
Look for and parse ::ActiveSupport::JSON
strings that look like ISO 8601 times.
# File 'activesupport/lib/active_support/json/decoding.rb', line 9
mattr_accessor :parse_json_times
.test_order (rw) Also known as: #test_order
This method is for internal use only.
[ GitHub ]
# File 'activesupport/lib/active_support.rb', line 100
cattr_accessor :test_order # :nodoc:
.test_parallelization_threshold (rw) Also known as: #test_parallelization_threshold
This method is for internal use only.
[ GitHub ]
# File 'activesupport/lib/active_support.rb', line 101
cattr_accessor :test_parallelization_threshold, default: 50 # :nodoc:
.to_time_preserves_timezone (rw)
This method is for internal use only.
[ GitHub ]
# File 'activesupport/lib/active_support.rb', line 114
def self.to_time_preserves_timezone DateAndTime::Compatibility.preserve_timezone end
.to_time_preserves_timezone=(value) (rw)
This method is for internal use only.
[ GitHub ]
# File 'activesupport/lib/active_support.rb', line 118
def self.to_time_preserves_timezone=(value) if !value ActiveSupport.deprecator.warn( "`to_time` will always preserve the receiver timezone rather than system local time in Rails 8.1. " \ "To opt in to the new behavior, set `config.active_support.to_time_preserves_timezone = :zone`." ) elsif value != :zone ActiveSupport.deprecator.warn( "`to_time` will always preserve the full timezone rather than offset of the receiver in Rails 8.1. " \ "To opt in to the new behavior, set `config.active_support.to_time_preserves_timezone = :zone`." ) end DateAndTime::Compatibility.preserve_timezone = value end
.utc_to_local_returns_utc_offset_times (rw)
This method is for internal use only.
[ GitHub ]
# File 'activesupport/lib/active_support.rb', line 134
def self.utc_to_local_returns_utc_offset_times DateAndTime::Compatibility.utc_to_local_returns_utc_offset_times end
.utc_to_local_returns_utc_offset_times=(value) (rw)
This method is for internal use only.
[ GitHub ]
# File 'activesupport/lib/active_support.rb', line 138
def self.utc_to_local_returns_utc_offset_times=(value) DateAndTime::Compatibility.utc_to_local_returns_utc_offset_times = value end
Class Method Details
.deprecator
This method is for internal use only.
[ GitHub ]
# File 'activesupport/lib/active_support/deprecator.rb', line 4
def self.deprecator # :nodoc: ActiveSupport::Deprecation._instance end
.eager_load!
[ GitHub ]# File 'activesupport/lib/active_support.rb', line 94
def self.eager_load! super NumberHelper.eager_load! end
.gem_version
Returns the currently loaded version of Active Support as a Gem::Version
.
.version
Returns the currently loaded version of Active Support as a Gem::Version
.
# File 'activesupport/lib/active_support/version.rb', line 7
def self.version gem_version end
Instance Attribute Details
#error_reporter (rw)
This method is for internal use only.
[ GitHub ]
# File 'activesupport/lib/active_support.rb', line 104
singleton_class.attr_accessor :error_reporter # :nodoc:
#escape_html_entities_in_json (rw)
[ GitHub ]# File 'activesupport/lib/active_support/json/encoding.rb', line 8
delegate :use_standard_json_time_format, :use_standard_json_time_format=, :time_precision, :time_precision=, :escape_html_entities_in_json, :escape_html_entities_in_json=, :json_encoder, :json_encoder=, to: :'ActiveSupport::JSON::Encoding'
#json_encoder (rw)
[ GitHub ]# File 'activesupport/lib/active_support/json/encoding.rb', line 8
delegate :use_standard_json_time_format, :use_standard_json_time_format=, :time_precision, :time_precision=, :escape_html_entities_in_json, :escape_html_entities_in_json=, :json_encoder, :json_encoder=, to: :'ActiveSupport::JSON::Encoding'
#parse_json_times (rw)
[ GitHub ]# File 'activesupport/lib/active_support/json/decoding.rb', line 9
mattr_accessor :parse_json_times
#test_order (rw)
This method is for internal use only.
[ GitHub ]
# File 'activesupport/lib/active_support.rb', line 100
cattr_accessor :test_order # :nodoc:
#test_parallelization_threshold (rw)
This method is for internal use only.
[ GitHub ]
# File 'activesupport/lib/active_support.rb', line 101
cattr_accessor :test_parallelization_threshold, default: 50 # :nodoc:
#time_precision (rw)
[ GitHub ]# File 'activesupport/lib/active_support/json/encoding.rb', line 8
delegate :use_standard_json_time_format, :use_standard_json_time_format=, :time_precision, :time_precision=, :escape_html_entities_in_json, :escape_html_entities_in_json=, :json_encoder, :json_encoder=, to: :'ActiveSupport::JSON::Encoding'
#use_standard_json_time_format (rw)
[ GitHub ]# File 'activesupport/lib/active_support/json/encoding.rb', line 8
delegate :use_standard_json_time_format, :use_standard_json_time_format=, :time_precision, :time_precision=, :escape_html_entities_in_json, :escape_html_entities_in_json=, :json_encoder, :json_encoder=, to: :'ActiveSupport::JSON::Encoding'