Methods
- backtrace_cleaner
- cache
- configuration
- configuration=
- env
- initialized=
- initialized?
- logger
- public_path
- public_path=
- root
- version
Classes and Modules
Module Rails::GeneratorModule Rails::Rack
Class Rails::BacktraceCleaner
Class Rails::Configuration
Class Rails::GemBuilder
Class Rails::GemDependency
Class Rails::GemPlugin
Class Rails::Initializer
Class Rails::Plugin
Class Rails::SecretKeyGenerator
Class Rails::VendorGemSourceIndex
Public Class methods
[ show source ]
# File railties/lib/initializer.rb, line 43 43: def backtrace_cleaner 44: @@backtrace_cleaner ||= begin 45: # Relies on ActiveSupport, so we have to lazy load to postpone definition until AS has been loaded 46: require 'rails/backtrace_cleaner' 47: Rails::BacktraceCleaner.new 48: end 49: end
[ show source ]
# File railties/lib/initializer.rb, line 59 59: def cache 60: RAILS_CACHE 61: end
The Configuration instance used to configure the Rails environment
[ show source ]
# File railties/lib/initializer.rb, line 19 19: def configuration 20: @@configuration 21: end
[ show source ]
# File railties/lib/initializer.rb, line 23 23: def configuration=(configuration) 24: @@configuration = configuration 25: end
[ show source ]
# File railties/lib/initializer.rb, line 55 55: def env 56: @_env ||= ActiveSupport::StringInquirer.new(RAILS_ENV) 57: end
[ show source ]
# File railties/lib/initializer.rb, line 31 31: def initialized=(initialized) 32: @initialized ||= initialized 33: end
[ show source ]
# File railties/lib/initializer.rb, line 27 27: def initialized? 28: @initialized || false 29: end
[ show source ]
# File railties/lib/initializer.rb, line 35 35: def logger 36: if defined?(RAILS_DEFAULT_LOGGER) 37: RAILS_DEFAULT_LOGGER 38: else 39: nil 40: end 41: end
[ show source ]
# File railties/lib/initializer.rb, line 67 67: def public_path 68: @@public_path ||= self.root ? File.join(self.root, "public") : "public" 69: end
[ show source ]
# File railties/lib/initializer.rb, line 71 71: def public_path=(path) 72: @@public_path = path 73: end
[ show source ]
# File railties/lib/initializer.rb, line 51 51: def root 52: Pathname.new(RAILS_ROOT) if defined?(RAILS_ROOT) 53: end
[ show source ]
# File railties/lib/initializer.rb, line 63 63: def version 64: VERSION::STRING 65: end