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)

3 comments
Comment actions Permalink

Hello Bob,

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

0
Comment actions Permalink

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
Comment actions Permalink
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

Please sign in to leave a comment.