This project is archived and is in readonly mode.

#2294 ✓resolved
Daniel Butler

ruby 1.9.1 compat: generate with --git option fails on call to String#inject

Reported by Daniel Butler | March 18th, 2009 @ 10:49 PM | in 2.x

Using Ruby 1.9.1, the generator script does not work when using the --git/-g option because String in Ruby 1.9 is no longer an enumerable, and inject does not work with it.

$ ./script/generate resource foo -g
undefined method `inject' for #<String:0x153a36c>

A patch is attached to fix the issue.

Comments and changes to this ticket

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>

Pages