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:
Namespace
- MODULE ActiveSupport::ActionableError
- MODULE ActiveSupport::Autoload
- MODULE ActiveSupport::Benchmarkable
- MODULE ActiveSupport::Cache
- MODULE ActiveSupport::Callbacks
- MODULE ActiveSupport::CompareWithRange
- MODULE ActiveSupport::Concern
- MODULE ActiveSupport::Concurrency
- MODULE ActiveSupport::Configurable
- MODULE ActiveSupport::CoreExt
- MODULE ActiveSupport::Dependencies
- MODULE ActiveSupport::DescendantsTracker
- MODULE ActiveSupport::EnumerableCoreExt
- MODULE ActiveSupport::ForkTracker
- MODULE ActiveSupport::Gzip
- MODULE ActiveSupport::Inflector
- MODULE ActiveSupport::JSON
- MODULE ActiveSupport::LazyLoadHooks
- MODULE ActiveSupport::LoggerSilence
- MODULE ActiveSupport::MessagePack
- MODULE ActiveSupport::Messages
- MODULE ActiveSupport::Multibyte
- MODULE ActiveSupport::Notifications
- MODULE ActiveSupport::NumberHelper
- MODULE ActiveSupport::NumericWithFormat
- MODULE ActiveSupport::RangeWithFormat
- MODULE ActiveSupport::Rescuable
- MODULE ActiveSupport::SecurityUtils
- MODULE ActiveSupport::TaggedLogging
- MODULE ActiveSupport::Testing
- MODULE ActiveSupport::VERSION
- MODULE ActiveSupport::XmlMini
- MODULE ActiveSupport::XmlMini_LibXMLSAX
- MODULE ActiveSupport::XmlMini_NokogiriSAX
- CLASS ActiveSupport::ArrayInquirer
- CLASS ActiveSupport::BacktraceCleaner
- CLASS ActiveSupport::BroadcastLogger
- CLASS ActiveSupport::CachingKeyGenerator
- CLASS ActiveSupport::CodeGenerator
- CLASS ActiveSupport::ConfigurationFile
- CLASS ActiveSupport::CurrentAttributes
- CLASS ActiveSupport::Deprecation
- CLASS ActiveSupport::DeprecationException
- CLASS ActiveSupport::Duration
- CLASS ActiveSupport::EncryptedConfiguration
- CLASS ActiveSupport::EncryptedFile
- CLASS ActiveSupport::ErrorReporter
- CLASS ActiveSupport::EventedFileUpdateChecker
- CLASS ActiveSupport::ExecutionWrapper
- CLASS ActiveSupport::Executor
- CLASS ActiveSupport::FileUpdateChecker
- CLASS ActiveSupport::HashWithIndifferentAccess
- CLASS ActiveSupport::InheritableOptions
- CLASS ActiveSupport::KeyGenerator
- CLASS ActiveSupport::LogSubscriber
- CLASS ActiveSupport::Logger
- CLASS ActiveSupport::MessageEncryptor
- CLASS ActiveSupport::MessageEncryptors
- CLASS ActiveSupport::MessageVerifier
- CLASS ActiveSupport::MessageVerifiers
- CLASS ActiveSupport::OrderedOptions
- CLASS ActiveSupport::ParameterFilter
- CLASS ActiveSupport::ProxyObject
- CLASS ActiveSupport::Reloader
- CLASS ActiveSupport::SafeBuffer
- CLASS ActiveSupport::SecureCompareRotator
- CLASS ActiveSupport::StringInquirer
- CLASS ActiveSupport::Subscriber
- CLASS ActiveSupport::TestCase
- CLASS ActiveSupport::TimeWithZone
- CLASS ActiveSupport::TimeZone
- CLASS ActiveSupport::XMLConverter
Methods
- C
- E
- G
- T
- U
- V
Class Public methods
cache_format_version() Link
cache_format_version=(value) Link
eager_load!() Link
gem_version() Link
Returns the currently loaded version of Active Support as a Gem::Version
.
to_time_preserves_timezone() Link
to_time_preserves_timezone=(value) Link
# File activesupport/lib/active_support.rb, line 116 def self.to_time_preserves_timezone=(value) unless value ActiveSupport.deprecator.warn( "Support for the pre-Ruby 2.4 behavior of to_time has been deprecated and will be removed in Rails 7.2." ) end DateAndTime::Compatibility.preserve_timezone = value end