Module: Rails
- Defined in:
- lib/rails/rack.rb,
lib/initializer.rb,
lib/rails/plugin.rb,
lib/rails/version.rb,
lib/rails/rack/metal.rb,
lib/rails/gem_builder.rb,
lib/rails/rack/static.rb,
lib/rails/plugin/loader.rb,
lib/rails/rack/debugger.rb,
lib/rails/gem_dependency.rb,
lib/rails/plugin/locator.rb,
lib/rails_generator/base.rb,
lib/rails_generator/spec.rb,
lib/rails/rack/log_tailer.rb,
lib/rails/backtrace_cleaner.rb,
lib/rails_generator/options.rb,
lib/rails_generator/scripts.rb,
lib/rails_generator/commands.rb,
lib/rails_generator/manifest.rb,
lib/rails/vendor_gem_source_index.rb,
lib/rails_generator/simple_logger.rb,
lib/rails_generator/generated_attribute.rb,
lib/rails_generator/secret_key_generator.rb,
lib/rails_generator/generators/applications/app/scm/git.rb,
lib/rails_generator/generators/applications/app/scm/scm.rb,
lib/rails_generator/generators/applications/app/scm/svn.rb,
lib/rails_generator/generators/applications/app/template_runner.rb,
lib/rails_generator/lookup.rb
Defined Under Namespace
Modules: BacktraceFilterForTestUnit, Generator, Rack, VERSION
Classes: BacktraceCleaner, Configuration, GemBuilder, GemDependency, GemPlugin, Git, Initializer, OrderedOptions, Plugin, Scm, SecretKeyGenerator, Svn, TemplateRunner, VendorGemSourceIndex
Class Method Summary
collapse
Class Method Details
.backtrace_cleaner ⇒ Object
43
44
45
46
47
48
49
|
# File 'lib/initializer.rb', line 43
def backtrace_cleaner
@@backtrace_cleaner ||= begin
require 'rails/backtrace_cleaner'
Rails::BacktraceCleaner.new
end
end
|
59
60
61
|
# File 'lib/initializer.rb', line 59
def cache
RAILS_CACHE
end
|
.configuration ⇒ Object
The Configuration instance used to configure the Rails environment
19
20
21
|
# File 'lib/initializer.rb', line 19
def configuration
@@configuration
end
|
.configuration=(configuration) ⇒ Object
23
24
25
|
# File 'lib/initializer.rb', line 23
def configuration=(configuration)
@@configuration = configuration
end
|
55
56
57
|
# File 'lib/initializer.rb', line 55
def env
@_env ||= ActiveSupport::StringInquirer.new(RAILS_ENV)
end
|
.initialized=(initialized) ⇒ Object
31
32
33
|
# File 'lib/initializer.rb', line 31
def initialized=(initialized)
@initialized ||= initialized
end
|
.initialized? ⇒ Boolean
27
28
29
|
# File 'lib/initializer.rb', line 27
def initialized?
@initialized || false
end
|
35
36
37
38
39
40
41
|
# File 'lib/initializer.rb', line 35
def logger
if defined?(RAILS_DEFAULT_LOGGER)
RAILS_DEFAULT_LOGGER
else
nil
end
end
|
.public_path ⇒ Object
67
68
69
|
# File 'lib/initializer.rb', line 67
def public_path
@@public_path ||= self.root ? File.join(self.root, "public") : "public"
end
|
.public_path=(path) ⇒ Object
71
72
73
|
# File 'lib/initializer.rb', line 71
def public_path=(path)
@@public_path = path
end
|
51
52
53
|
# File 'lib/initializer.rb', line 51
def root
Pathname.new(RAILS_ROOT) if defined?(RAILS_ROOT)
end
|
63
64
65
|
# File 'lib/initializer.rb', line 63
def version
VERSION::STRING
end
|