123456789_123456789_123456789_123456789_123456789_

Module: ActiveSupport

Relationships & Source Files
Namespace Children
Modules:
Classes:
Exceptions:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Autoload
Defined in: activesupport/lib/active_support/inflections.rb,
activesupport/lib/active_support.rb,
activesupport/lib/active_support/backtrace_cleaner.rb,
activesupport/lib/active_support/benchmarkable.rb,
activesupport/lib/active_support/cache.rb,
activesupport/lib/active_support/callbacks.rb,
activesupport/lib/active_support/concern.rb,
activesupport/lib/active_support/configurable.rb,
activesupport/lib/active_support/dependencies.rb,
activesupport/lib/active_support/deprecation.rb,
activesupport/lib/active_support/descendants_tracker.rb,
activesupport/lib/active_support/duration.rb,
activesupport/lib/active_support/file_update_checker.rb,
activesupport/lib/active_support/gem_version.rb,
activesupport/lib/active_support/gzip.rb,
activesupport/lib/active_support/hash_with_indifferent_access.rb,
activesupport/lib/active_support/key_generator.rb,
activesupport/lib/active_support/lazy_load_hooks.rb,
activesupport/lib/active_support/log_subscriber.rb,
activesupport/lib/active_support/logger.rb,
activesupport/lib/active_support/logger_thread_safe_level.rb,
activesupport/lib/active_support/message_encryptor.rb,
activesupport/lib/active_support/message_verifier.rb,
activesupport/lib/active_support/multibyte.rb,
activesupport/lib/active_support/notifications.rb,
activesupport/lib/active_support/number_helper.rb,
activesupport/lib/active_support/option_merger.rb,
activesupport/lib/active_support/ordered_hash.rb,
activesupport/lib/active_support/ordered_options.rb,
activesupport/lib/active_support/per_thread_registry.rb,
activesupport/lib/active_support/proxy_object.rb,
activesupport/lib/active_support/railtie.rb,
activesupport/lib/active_support/rescuable.rb,
activesupport/lib/active_support/security_utils.rb,
activesupport/lib/active_support/string_inquirer.rb,
activesupport/lib/active_support/subscriber.rb,
activesupport/lib/active_support/tagged_logging.rb,
activesupport/lib/active_support/test_case.rb,
activesupport/lib/active_support/time.rb,
activesupport/lib/active_support/time_with_zone.rb,
activesupport/lib/active_support/version.rb,
activesupport/lib/active_support/xml_mini.rb,
activesupport/lib/active_support/cache/file_store.rb,
activesupport/lib/active_support/cache/mem_cache_store.rb,
activesupport/lib/active_support/cache/memory_store.rb,
activesupport/lib/active_support/cache/null_store.rb,
activesupport/lib/active_support/cache/strategy/local_cache.rb,
activesupport/lib/active_support/cache/strategy/local_cache_middleware.rb,
activesupport/lib/active_support/concurrency/latch.rb,
activesupport/lib/active_support/core_ext/hash/conversions.rb,
activesupport/lib/active_support/core_ext/string/output_safety.rb,
activesupport/lib/active_support/dependencies/autoload.rb,
activesupport/lib/active_support/deprecation/behaviors.rb,
activesupport/lib/active_support/deprecation/instance_delegator.rb,
activesupport/lib/active_support/deprecation/method_wrappers.rb,
activesupport/lib/active_support/deprecation/proxy_wrappers.rb,
activesupport/lib/active_support/deprecation/reporting.rb,
activesupport/lib/active_support/inflector/inflections.rb,
activesupport/lib/active_support/inflector/methods.rb,
activesupport/lib/active_support/inflector/transliterate.rb,
activesupport/lib/active_support/json/decoding.rb,
activesupport/lib/active_support/json/encoding.rb,
activesupport/lib/active_support/log_subscriber/test_helper.rb,
activesupport/lib/active_support/multibyte/chars.rb,
activesupport/lib/active_support/multibyte/unicode.rb,
activesupport/lib/active_support/notifications/fanout.rb,
activesupport/lib/active_support/notifications/instrumenter.rb,
activesupport/lib/active_support/number_helper/number_converter.rb,
activesupport/lib/active_support/number_helper/number_to_currency_converter.rb,
activesupport/lib/active_support/number_helper/number_to_delimited_converter.rb,
activesupport/lib/active_support/number_helper/number_to_human_converter.rb,
activesupport/lib/active_support/number_helper/number_to_human_size_converter.rb,
activesupport/lib/active_support/number_helper/number_to_percentage_converter.rb,
activesupport/lib/active_support/number_helper/number_to_phone_converter.rb,
activesupport/lib/active_support/number_helper/number_to_rounded_converter.rb,
activesupport/lib/active_support/testing/assertions.rb,
activesupport/lib/active_support/testing/constant_lookup.rb,
activesupport/lib/active_support/testing/declarative.rb,
activesupport/lib/active_support/testing/deprecation.rb,
activesupport/lib/active_support/testing/isolation.rb,
activesupport/lib/active_support/testing/setup_and_teardown.rb,
activesupport/lib/active_support/testing/tagged_logging.rb,
activesupport/lib/active_support/testing/time_helpers.rb,
activesupport/lib/active_support/values/time_zone.rb,
activesupport/lib/active_support/xml_mini/jdom.rb,
activesupport/lib/active_support/xml_mini/libxml.rb,
activesupport/lib/active_support/xml_mini/libxmlsax.rb,
activesupport/lib/active_support/xml_mini/nokogiri.rb,
activesupport/lib/active_support/xml_mini/nokogirisax.rb,
activesupport/lib/active_support/xml_mini/rexml.rb

Class Attribute Summary

Class Method Summary

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.

[ GitHub ]

  
# 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, options, block)
  if options[: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

[ GitHub ]

  
# File 'activesupport/lib/active_support/gem_version.rb', line 3

def self.gem_version
  Gem::Version.new VERSION::STRING
end

.on_load(name, options = {}, &block)

[ GitHub ]

  
# File 'activesupport/lib/active_support/lazy_load_hooks.rb', line 26

def self.on_load(name, options = {}, &block)
  @loaded[name].each do |base|
    execute_hook(base, options, block)
  end

  @load_hooks[name] << [block, options]
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, options|
    execute_hook(base, options, hook)
  end
end

.version

Returns the version of the currently loaded ActiveSupport as a Gem::Version

[ GitHub ]

  
# 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'