- application
- application=
- backtrace_cleaner
- cache
- configuration
- env
- env=
- initialize!
- initialized=
- initialized?
- logger
- logger=
- public_path
- public_path=
- root
- version
[ show source ]
# File railties/lib/rails.rb, line 34 def application @@application ||= nil end
[ show source ]
# File railties/lib/rails.rb, line 38 def application=(application) @@application = application end
[ show source ]
# File railties/lib/rails.rb, line 67 def backtrace_cleaner @@backtrace_cleaner ||= begin # Relies on Active Support, so we have to lazy load to postpone definition until AS has been loaded require 'rails/backtrace_cleaner' Rails::BacktraceCleaner.new end end
The Configuration instance used to configure the Rails environment
[ show source ]
# File railties/lib/rails.rb, line 43 def configuration application.config end
[ show source ]
# File railties/lib/rails.rb, line 79 def env @_env ||= ActiveSupport::StringInquirer.new(ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development") end
[ show source ]
# File railties/lib/rails.rb, line 83 def env=(environment) @_env = ActiveSupport::StringInquirer.new(environment) end
[ show source ]
# File railties/lib/rails.rb, line 47 def initialize! application.initialize! end
[ show source ]
# File railties/lib/rails.rb, line 55 def initialized=(initialized) @@initialized ||= initialized end
[ show source ]
# File railties/lib/rails.rb, line 51 def initialized? @@initialized || false end
[ show source ]
# File railties/lib/rails.rb, line 63 def logger=(logger) @@logger = logger end
[ show source ]
# File railties/lib/rails.rb, line 95 def public_path application && application.paths.public.to_a.first end
[ show source ]
# File railties/lib/rails.rb, line 99 def public_path=(path) ActiveSupport::Deprecation.warn "Setting Rails.public_path= is deprecated. " << "Please set paths.public = in config/application.rb instead.", caller end
[ show source ]
# File railties/lib/rails.rb, line 75 def root application && application.config.root end