Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

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

#2294

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.

Reported by Daniel Butler · March 18th, 2009 @ 10:49 PM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none