Skip to Content Skip to Search

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 rubyonrails-core forum here:

Source: connection_pool 5a3d762481b9ec46b7cfdf643f8597bd3fc5f02d, github.com/mperham/connection_pool/tree/main

Copyright © 2011 Mike Perham

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Source: connection_pool 5a3d762481b9ec46b7cfdf643f8597bd3fc5f02d, github.com/mperham/connection_pool/tree/main

Copyright © 2011 Mike Perham

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Namespace
Methods
C
E
G
T
V

Attributes

[RW] colorize_logging
[RW] parse_json_times
[RW] raise_on_invalid_time_zone_parse
[RW] utc_to_local_returns_utc_offset_times

Class Public methods

cache_format_version()

# File activesupport/lib/active_support.rb, line 131
def self.cache_format_version
  Cache.format_version
end

cache_format_version=(value)

# File activesupport/lib/active_support.rb, line 135
def self.cache_format_version=(value)
  Cache.format_version = value
end

eager_load!()

# File activesupport/lib/active_support.rb, line 106
def self.eager_load!
  super

  NumberHelper.eager_load!
end

gem_version()

Returns the currently loaded version of Active Support as a Gem::Version.

# File activesupport/lib/active_support/gem_version.rb, line 5
def self.gem_version
  Gem::Version.new VERSION::STRING
end

to_time_preserves_timezone()

# File activesupport/lib/active_support.rb, line 139
def self.to_time_preserves_timezone
  ActiveSupport.deprecator.warn(
    "`config.active_support.to_time_preserves_timezone` is deprecated and will be removed in Rails 8.2"
  )
  @to_time_preserves_timezone
end

to_time_preserves_timezone=(value)

# File activesupport/lib/active_support.rb, line 146
def self.to_time_preserves_timezone=(value)
  ActiveSupport.deprecator.warn(
    "`config.active_support.to_time_preserves_timezone` is deprecated and will be removed in Rails 8.2"
  )

  @to_time_preserves_timezone = value
end

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