diff options
author | José Valim <jose.valim@gmail.com> | 2011-09-04 01:47:10 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-09-04 01:47:10 -0700 |
commit | 98c3fd87e2879ab2fb9c8cd31afacae5e7110325 (patch) | |
tree | a7966a80b1c8b61987c64d75013e5b852fd06dd6 /railties/guides/source/rails_application_templates.textile | |
parent | 036a25019d79565a6016cb60c520816916bb7de6 (diff) | |
parent | 47bc5d0cc8dec79c0c64ade7d453b60f846424a9 (diff) | |
download | rails-98c3fd87e2879ab2fb9c8cd31afacae5e7110325.tar.gz rails-98c3fd87e2879ab2fb9c8cd31afacae5e7110325.tar.bz2 rails-98c3fd87e2879ab2fb9c8cd31afacae5e7110325.zip |
Merge pull request #2841 from wojtekmach/app-generators-group
Add gem group support to generators
Diffstat (limited to 'railties/guides/source/rails_application_templates.textile')
-rw-r--r-- | railties/guides/source/rails_application_templates.textile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/railties/guides/source/rails_application_templates.textile b/railties/guides/source/rails_application_templates.textile index 566f8a0bdd..c3c8af4d3a 100644 --- a/railties/guides/source/rails_application_templates.textile +++ b/railties/guides/source/rails_application_templates.textile @@ -60,6 +60,18 @@ Please note that this will NOT install the gems for you and you will have to run bundle install </ruby> +h4. gem_group(*names, &block) + +Wraps gem entries inside a group. + +For example, if you want to load +rspec-rails+ only in +development+ and +test+ group: + +<ruby> +gem_group :development, :test do + gem "rspec-rails" +end +</ruby> + h4. add_source(source, options = {}) Adds the given source to the generated application's +Gemfile+. |