groups(*groups) public

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"
Show source
Register or log in to add new notes.