Namespace
- MODULE Rails::ActionMethods
- MODULE Rails::Commands
- MODULE Rails::Configuration
- MODULE Rails::ConsoleMethods
- MODULE Rails::Generators
- MODULE Rails::Info
- MODULE Rails::Initializable
- MODULE Rails::Paths
- MODULE Rails::Rack
- MODULE Rails::ScriptRailsLoader
- CLASS Rails::AppBuilder
- CLASS Rails::Application
- CLASS Rails::BacktraceCleaner
- CLASS Rails::Console
- CLASS Rails::DBConsole
- CLASS Rails::Engine
- CLASS Rails::InfoController
- CLASS Rails::Plugin
- CLASS Rails::PluginBuilder
- CLASS Rails::Railtie
- CLASS Rails::Server
- CLASS Rails::SubTestTask
- CLASS Rails::TestUnitRailtie
Methods
- A
- B
- C
- E
- G
- I
- L
- P
- R
- V
Class Public methods
application()
Link
application=(application)
Link
backtrace_cleaner()
Link
cache()
Link
configuration()
Link
The Configuration instance used to configure the Rails environment
env()
Link
env=(environment)
Link
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;
Examples
groups :assets => [:development, :test] # Returns # => [:default, :development, :assets] for Rails.env == "development" # => [:default, :production] for Rails.env == "production"
# File railties/lib/rails.rb, line 107 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
initialize!()
Link
initialized=(initialized)
Link
initialized?()
Link
logger()
Link
logger=(logger)
Link
public_path()
Link
root()
Link