File: active_support.rb

Overview
Module Structure
Code

Overview

Module Structure

  module: <Toplevel Module>
  module: ActiveSupport#24
has properties
module method: load_all! #25

Code

   1  #--
   2  # Copyright (c) 2005 David Heinemeier Hansson
   3  #
   4  # Permission is hereby granted, free of charge, to any person obtaining
   5  # a copy of this software and associated documentation files (the
   6  # "Software"), to deal in the Software without restriction, including
   7  # without limitation the rights to use, copy, modify, merge, publish,
   8  # distribute, sublicense, and/or sell copies of the Software, and to
   9  # permit persons to whom the Software is furnished to do so, subject to
  10  # the following conditions:
  11  #
  12  # The above copyright notice and this permission notice shall be
  13  # included in all copies or substantial portions of the Software.
  14  #
  15  # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  16  # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  17  # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  18  # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  19  # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  20  # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  21  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  22  #++
  23 
  24  module ActiveSupport
  25    def self.load_all!
  26      [Dependencies, Deprecation, Gzip, MessageVerifier, Multibyte, SecureRandom, TimeWithZone]
  27    end
  28 
  29    autoload :BacktraceCleaner, 'active_support/backtrace_cleaner'
  30    autoload :Base64, 'active_support/base64'
  31    autoload :BasicObject, 'active_support/basic_object'
  32    autoload :BufferedLogger, 'active_support/buffered_logger'
  33    autoload :Cache, 'active_support/cache'
  34    autoload :Callbacks, 'active_support/callbacks'
  35    autoload :Deprecation, 'active_support/deprecation'
  36    autoload :Duration, 'active_support/duration'
  37    autoload :Gzip, 'active_support/gzip'
  38    autoload :Inflector, 'active_support/inflector'
  39    autoload :Memoizable, 'active_support/memoizable'
  40    autoload :MessageEncryptor, 'active_support/message_encryptor'
  41    autoload :MessageVerifier, 'active_support/message_verifier'
  42    autoload :Multibyte, 'active_support/multibyte'
  43    autoload :OptionMerger, 'active_support/option_merger'
  44    autoload :OrderedHash, 'active_support/ordered_hash'
  45    autoload :OrderedOptions, 'active_support/ordered_options'
  46    autoload :Rescuable, 'active_support/rescuable'
  47    autoload :SafeBuffer, 'active_support/core_ext/string/output_safety'
  48    autoload :SecureRandom, 'active_support/secure_random'
  49    autoload :StringInquirer, 'active_support/string_inquirer'
  50    autoload :TimeWithZone, 'active_support/time_with_zone'
  51    autoload :TimeZone, 'active_support/values/time_zone'
  52    autoload :XmlMini, 'active_support/xml_mini'
  53  end
  54 
  55  require 'active_support/vendor'
  56  require 'active_support/core_ext'
  57  require 'active_support/dependencies'
  58  require 'active_support/json'
  59 
  60  I18n.load_path << "#{File.dirname(__FILE__)}/active_support/locale/en.yml"