Snowcrash
Snowcrash

Reputation: 86277

Rails: group :production do

Say you create a group in a Gemfile like this:

group :production do
  gem 'pg'
end

E.g. see http://bundler.io/v1.3/groups.html

Where does the group keyword come from?

And where does the :production attribute come from?

Links would help.

Upvotes: 2

Views: 1361

Answers (1)

Jeremy Green
Jeremy Green

Reputation: 8574

group is a method that is provided by Bundler. :production is just a name of a group. The document that you linked explains this concept pretty well. (Unless I'm completely misunderstanding your question...)

Upvotes: 4

Related Questions