module Rails

Public Class Methods

backtrace_cleaner() click to toggle source
# File lib/rails-2.3.14/initializer.rb, line 47
def backtrace_cleaner
  @@backtrace_cleaner ||= begin
    # Relies on ActiveSupport, so we have to lazy load to postpone definition until AS has been loaded
    require 'rails/backtrace_cleaner'
    Rails::BacktraceCleaner.new
  end
end
cache() click to toggle source
# File lib/rails-2.3.14/initializer.rb, line 63
def cache
  RAILS_CACHE
end
configuration() click to toggle source

The Configuration instance used to configure the Rails environment

# File lib/rails-2.3.14/initializer.rb, line 23
def configuration
  @@configuration
end
configuration=(configuration) click to toggle source
# File lib/rails-2.3.14/initializer.rb, line 27
def configuration=(configuration)
  @@configuration = configuration
end
env() click to toggle source
# File lib/rails-2.3.14/initializer.rb, line 59
def env
  @_env ||= ActiveSupport::StringInquirer.new(RAILS_ENV)
end
initialized=(initialized) click to toggle source
# File lib/rails-2.3.14/initializer.rb, line 35
def initialized=(initialized)
  @initialized ||= initialized
end
initialized?() click to toggle source
# File lib/rails-2.3.14/initializer.rb, line 31
def initialized?
  @initialized || false
end
logger() click to toggle source
# File lib/rails-2.3.14/initializer.rb, line 39
def logger
  if defined?(RAILS_DEFAULT_LOGGER)
    RAILS_DEFAULT_LOGGER
  else
    nil
  end
end
public_path() click to toggle source
# File lib/rails-2.3.14/initializer.rb, line 71
def public_path
  @@public_path ||= self.root ? File.join(self.root, "public") : "public"
end
public_path=(path) click to toggle source
# File lib/rails-2.3.14/initializer.rb, line 75
def public_path=(path)
  @@public_path = path
end
root() click to toggle source
# File lib/rails-2.3.14/initializer.rb, line 55
def root
  Pathname.new(RAILS_ROOT) if defined?(RAILS_ROOT)
end
version() click to toggle source
# File lib/rails-2.3.14/initializer.rb, line 67
def version
  VERSION::STRING
end