In Files

Methods

Class/Module Index [+]

Quicksearch

ActiveSupport

OrderedHash is namespaced to prevent conflicts with other implementations


The TimeZone class serves as a wrapper around TZInfo::Timezone instances. It allows us to do the following:

If you set config.time_zone in the Rails Initializer, you can access this TimeZone object via Time.zone:

# environment.rb:
Rails::Initializer.run do |config|
  config.time_zone = "Eastern Time (US & Canada)"
end

Time.zone       # => #<TimeZone:0x514834...>
Time.zone.name  # => "Eastern Time (US & Canada)"
Time.zone.now   # => Sun, 18 May 2008 14:30:44 EDT -04:00

The version of TZInfo bundled with Active Support only includes the definitions necessary to support the zones defined by the TimeZone class. If you need to use zones that aren't defined by TimeZone, you'll need to install the TZInfo gem (if a recent version of the gem is installed locally, this will be used instead of the bundled version.)


XmlMini LibXML implementation


XmlMini LibXML implementation using a SAX-based parser


XmlMini Nokogiri implementation


XmlMini Nokogiri implementation using a SAX-based parser


XmlMini ReXML implementation

Constants

Base64
FrozenObjectError
SecureRandom

Use Ruby's SecureRandom library if available.

Public Class Methods

load_all!() click to toggle source
# File lib/active_support.rb, line 25
def self.load_all!
  [Dependencies, Deprecation, Gzip, MessageVerifier, Multibyte, SecureRandom, TimeWithZone]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.