rails 1.1.6のActiveSupportのTime#to_dateがruby 1.8.6でエラーになるのを直す
結局ヘルパーに
def to_date(time) ::Date(time.year, time.month, time.day) end
と追加して,1.month.ago.to_dateって使っていたのを(カッコ悪いけど)to_date(1.month.ago)とした。
結局ヘルパーに
def to_date(time) ::Date(time.year, time.month, time.day) end
と追加して,1.month.ago.to_dateって使っていたのを(カッコ悪いけど)to_date(1.month.ago)とした。