This project is archived and is in readonly mode.
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
-
Prem Sichanugrist (sikachu) January 20th, 2010 @ 05:53 PM
- State changed from new to resolved
This problem has been fixed (Rails 2.3.5, Ruby 1.9.1p376)
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>