耸肩 ing...
# ruby 1.9.3-p194 + rails 3.2.6
Date.new.step(Date.new, 1.second).map{}
#=> TypeError: expected numeric
Date.new.step(Date.new, 1.second.to_i).map{}
#=> [nil]
Date.new.step(Date.new, 1).map{}
#=> [nil]
# ruby 1.9.2-p290 + rails 3.2.6
Date.new.step(Date.new, 1.second).map{}
#=> [nil]
Date.new.step(Date.new, 1.second.to_i).map{}
#=> [nil]
Date.new.step(Date.new, 1).map{}
#=> [nil]
睡觉去了,明天起床后看看 gist 那边会不会有大牛来授业解惑。。。https://gist.github.com/3274847