Why does RM complain about argument count in Date.new

I moved older code to Rails 3.22/RM 4.0.2 and am getting red marks (Found 2 extra argument(s), Required <= 1; super_class=...) in the statement

dateone = Date.new(2010,3,22)

0

Hello Bob,

here is corresponding issue in our bugtracker. Feel free to vote for it and track it's progress

0

I guess I'm not a member of BugTracker, so cannot vote or comment, but I can see the effort..

I would vote that it is certainly an annoyance. I can work around the problem by using Date.parse instead of Date.new, but I wonder about the performance hit.

0
I guess I'm not a member of BugTracker, so cannot vote or comment

Registration is FREE ... no deposit, no credit card details required.

0

请先登录再写评论。