Remove undefined Ruby methods

A template is using the String#each Ruby method which is defined in Ruby
1.8 but not in Ruby 1.9.

Closes-Bug: #1316678