Commit dee0ba1b0d793dcde6690ff7b3af822da51c18eb
1 parent
c3c5fb1d
Exists in
master
and in
1 other branch
abstract dependency on generator
Showing
2 changed files
with
5 additions
and
1 deletions
Show diff stats
app/controllers/questions_controller.rb
... | ... | @@ -369,7 +369,7 @@ class QuestionsController < InheritedResources::Base |
369 | 369 | # objects. This solution depends on Array#to_xml rendering each |
370 | 370 | # member in the correct order. Internally, it just uses, #each, so |
371 | 371 | # this _should_ work. |
372 | - ids = Generator.new{ |g| @questions.each{ |q| g.yield q.id } } | |
372 | + ids = Enumerator.new{ |g| @questions.each{ |q| g.yield q.id } } | |
373 | 373 | extra_info = Proc.new do |o| |
374 | 374 | id = ids.next |
375 | 375 | counts.each_pair do |attr, hash| | ... | ... |