Flowdock
method

groups

Importance_1
v3.2.8 - Show latest stable - 0 notes - Class: Rails
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.