Namespace
- MODULE Rails::API
- MODULE Rails::AppRailsLoader
- MODULE Rails::Configuration
- MODULE Rails::ConsoleMethods
- MODULE Rails::Generators
- MODULE Rails::Info
- MODULE Rails::Initializable
- MODULE Rails::Paths
- MODULE Rails::Rack
- MODULE Rails::VERSION
- CLASS Rails::AppBuilder
- CLASS Rails::Application
- CLASS Rails::BacktraceCleaner
- CLASS Rails::Console
- CLASS Rails::DBConsole
- CLASS Rails::DeprecatedConstant
- CLASS Rails::Engine
- CLASS Rails::PluginBuilder
- CLASS Rails::Railtie
- CLASS Rails::Server
- CLASS Rails::TestTask
- CLASS Rails::TestUnitRailtie
Methods
- B
- C
- E
- G
- P
- R
- V
Attributes
[RW] | application | |
[RW] | cache | |
[RW] | logger |
Class Public methods
backtrace_cleaner()
Link
configuration()
Link
The Configuration instance used to configure the Rails environment
env()
Link
env=(environment)
Link
gem_version()
Link
Returns the version of the currently loaded Rails as a
Gem::Version
groups(*groups)
Link
Returns all rails groups for loading based on:
-
The Rails environment;
-
The environment variable RAILS_GROUPS;
-
The optional envs given as argument and the hash with group dependencies;
groups assets: [:development, :test]
# Returns # => [:default, :development, :assets] for ::env == “development” # => [:default, :production] for ::env == “production”
# File railties/lib/rails.rb, line 72 def groups(*groups) hash = groups.extract_options! env = Rails.env groups.unshift(:default, env) groups.concat ENV["RAILS_GROUPS"].to_s.split(",") groups.concat hash.map { |k, v| k if v.map(&:to_s).include?(env) } groups.compact! groups.uniq! groups end
public_path()
Link
root()
Link