Module: ActiveSupport
Overview
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. These additions reside in this package so they can be loaded as needed in Ruby projects outside of Rails.
You can read more about the extensions in the Active Support Core Extensions guide.
Download and installation
The latest version of Active Support can be installed with RubyGems:
$ gem install activesupport
Source code can be downloaded as part of the Rails project on GitHub:
License
Active Support is released under the MIT license:
Support
API documentation is at:
Bug reports for the Ruby on Rails project can be filed here:
Feature requests should be discussed on the rails-core mailing list here:
Class Attribute Summary
-
.parse_json_times
(also: #parse_json_times)
rw
Look for and parse
JSON
strings that look like ISO 8601 times.
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
.
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 |
Autoload
- Extended
Instance Attribute Summary
Class Attribute Details
.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
Class Method Details
.eager_load!
[ GitHub ]# File 'activesupport/lib/active_support.rb', line 92
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
#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
#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'