This project is archived and is in readonly mode.

Changeset [16b3d2b621b1682f249209097c31b0a10f0f87ef] by Andrew Vit

February 28th, 2009 @ 05:59 PM

Added :env option for gem in template runner [#1983 state:resolved]

For installing gems that are only needed in the test environment, specify the :env option so the dependency is written to config/environments/test.rb:

gem 'rspec', :env => 'test'
gem 'quietbacktrace', :env => %w[development test]

Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...

Committed by Andrew Vit

  • M railties/lib/rails_generator/generators/applications/app/template_runner.rb
  • M railties/test/generators/rails_template_runner_test.rb

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>