Module: ActiveSupport
Class Attribute Summary
-
.parse_json_times
(also: #parse_json_times)
rw
Look for and parse json strings that look like ISO 8601 times.
- .to_time_preserves_timezone rw
- .to_time_preserves_timezone=(value) rw
Class Method Summary
- .eager_load!
- .execute_hook(base, options, block)
-
.gem_version
Returns the version of the currently loaded Active Support as a
Gem::Version
- .on_load(name, options = {}, &block)
- .run_load_hooks(name, base = Object)
-
.version
Returns the version of the currently loaded
ActiveSupport
as aGem::Version
Autoload - Extended
Instance Attribute Summary
Class Attribute Details
.parse_json_times (rw) Also known as: #parse_json_times
Look for and parse json strings that look like ISO 8601 times.
# File 'activesupport/lib/active_support/json/decoding.rb', line 7
mattr_accessor :parse_json_times
.to_time_preserves_timezone (rw)
[ GitHub ]# File 'activesupport/lib/active_support.rb', line 85
def self.to_time_preserves_timezone DateAndTime::Compatibility.preserve_timezone end
.to_time_preserves_timezone=(value) (rw)
[ GitHub ]# File 'activesupport/lib/active_support.rb', line 89
def self.to_time_preserves_timezone=(value) DateAndTime::Compatibility.preserve_timezone = value end
Class Method Details
.eager_load!
[ GitHub ]# File 'activesupport/lib/active_support.rb', line 69
def self.eager_load! super NumberHelper.eager_load! end
.execute_hook(base, options, block)
[ GitHub ]# File 'activesupport/lib/active_support/lazy_load_hooks.rb', line 34
def self.execute_hook(base, , block) if [:yield] block.call(base) else base.instance_eval(&block) end end
.gem_version
Returns the version of the currently loaded Active Support as a Gem::Version
.on_load(name, options = {}, &block)
[ GitHub ]# File 'activesupport/lib/active_support/lazy_load_hooks.rb', line 26
def self.on_load(name, = {}, &block) @loaded[name].each do |base| execute_hook(base, , block) end @load_hooks[name] << [block, ] end
.run_load_hooks(name, base = Object)
[ GitHub ]# File 'activesupport/lib/active_support/lazy_load_hooks.rb', line 42
def self.run_load_hooks(name, base = Object) @loaded[name] << base @load_hooks[name].each do |hook, | execute_hook(base, , hook) end end
.version
Returns the version of the currently loaded ActiveSupport
as a Gem::Version
# File 'activesupport/lib/active_support/version.rb', line 5
def self.version gem_version end
Instance Attribute Details
#encode_big_decimal_as_string (rw)
[ GitHub ]# File 'activesupport/lib/active_support/json/encoding.rb', line 7
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=, :encode_big_decimal_as_string, :encode_big_decimal_as_string=, :json_encoder, :json_encoder=, :to => :'ActiveSupport::JSON::Encoding'
#escape_html_entities_in_json (rw)
[ GitHub ]# File 'activesupport/lib/active_support/json/encoding.rb', line 7
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=, :encode_big_decimal_as_string, :encode_big_decimal_as_string=, :json_encoder, :json_encoder=, :to => :'ActiveSupport::JSON::Encoding'
#json_encoder (rw)
[ GitHub ]# File 'activesupport/lib/active_support/json/encoding.rb', line 7
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=, :encode_big_decimal_as_string, :encode_big_decimal_as_string=, :json_encoder, :json_encoder=, :to => :'ActiveSupport::JSON::Encoding'
#parse_json_times (rw)
[ GitHub ]# File 'activesupport/lib/active_support/json/decoding.rb', line 7
mattr_accessor :parse_json_times
#time_precision (rw)
[ GitHub ]# File 'activesupport/lib/active_support/json/encoding.rb', line 7
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=, :encode_big_decimal_as_string, :encode_big_decimal_as_string=, :json_encoder, :json_encoder=, :to => :'ActiveSupport::JSON::Encoding'
#use_standard_json_time_format (rw)
[ GitHub ]# File 'activesupport/lib/active_support/json/encoding.rb', line 7
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=, :encode_big_decimal_as_string, :encode_big_decimal_as_string=, :json_encoder, :json_encoder=, :to => :'ActiveSupport::JSON::Encoding'