Class/Module Index [+]

Quicksearch

Rails

Public Class Methods

backtrace_cleaner() click to toggle source
# File lib/initializer.rb, line 49
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/initializer.rb, line 65
def cache
  RAILS_CACHE
end
configuration() click to toggle source

The Configuration instance used to configure the Rails environment

# File lib/initializer.rb, line 25
def configuration
  @@configuration
end
configuration=(configuration) click to toggle source
# File lib/initializer.rb, line 29
def configuration=(configuration)
  @@configuration = configuration
end
env() click to toggle source
# File lib/initializer.rb, line 61
def env
  @_env ||= ActiveSupport::StringInquirer.new(RAILS_ENV)
end
initialized=(initialized) click to toggle source
# File lib/initializer.rb, line 37
def initialized=(initialized)
  @initialized ||= initialized
end
initialized?() click to toggle source
# File lib/initializer.rb, line 33
def initialized?
  @initialized || false
end
logger() click to toggle source
# File lib/initializer.rb, line 41
def logger
  if defined?(RAILS_DEFAULT_LOGGER)
    RAILS_DEFAULT_LOGGER
  else
    nil
  end
end
public_path() click to toggle source
# File lib/initializer.rb, line 73
def public_path
  @@public_path ||= self.root ? File.join(self.root, "public") : "public"
end
public_path=(path) click to toggle source
# File lib/initializer.rb, line 77
def public_path=(path)
  @@public_path = path
end
root() click to toggle source
# File lib/initializer.rb, line 57
def root
  Pathname.new(RAILS_ROOT) if defined?(RAILS_ROOT)
end
version() click to toggle source
# File lib/initializer.rb, line 69
def version
  VERSION::STRING
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.