Module: Rails
- Defined in:
- lib/rails-2.3.14/initializer.rb
Defined Under Namespace
Classes: Configuration, Initializer, OrderedOptions
Class Method Summary
collapse
Class Method Details
.backtrace_cleaner ⇒ Object
47
48
49
50
51
52
53
|
# File 'lib/rails-2.3.14/initializer.rb', line 47
def backtrace_cleaner
@@backtrace_cleaner ||= begin
require 'rails/backtrace_cleaner'
Rails::BacktraceCleaner.new
end
end
|
.cache ⇒ Object
63
64
65
|
# File 'lib/rails-2.3.14/initializer.rb', line 63
def cache
RAILS_CACHE
end
|
.configuration ⇒ Object
The Configuration instance used to configure the Rails environment
23
24
25
|
# File 'lib/rails-2.3.14/initializer.rb', line 23
def configuration
@@configuration
end
|
.configuration=(configuration) ⇒ Object
27
28
29
|
# File 'lib/rails-2.3.14/initializer.rb', line 27
def configuration=(configuration)
@@configuration = configuration
end
|
.env ⇒ Object
59
60
61
|
# File 'lib/rails-2.3.14/initializer.rb', line 59
def env
@_env ||= ActiveSupport::StringInquirer.new(RAILS_ENV)
end
|
.initialized=(initialized) ⇒ Object
35
36
37
|
# File 'lib/rails-2.3.14/initializer.rb', line 35
def initialized=(initialized)
@initialized ||= initialized
end
|
.initialized? ⇒ Boolean
31
32
33
|
# File 'lib/rails-2.3.14/initializer.rb', line 31
def initialized?
@initialized || false
end
|
.logger ⇒ Object
39
40
41
42
43
44
45
|
# 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 ⇒ Object
71
72
73
|
# 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) ⇒ Object
75
76
77
|
# File 'lib/rails-2.3.14/initializer.rb', line 75
def public_path=(path)
@@public_path = path
end
|
.root ⇒ Object
55
56
57
|
# File 'lib/rails-2.3.14/initializer.rb', line 55
def root
Pathname.new(RAILS_ROOT) if defined?(RAILS_ROOT)
end
|
.version ⇒ Object
67
68
69
|
# File 'lib/rails-2.3.14/initializer.rb', line 67
def version
VERSION::STRING
end
|