This project is archived and is in readonly mode.

#3302 ✓stale
Andrew Selder

Updated_at different for original object vs. retrieved object

Reported by Andrew Selder | September 28th, 2009 @ 11:40 PM

a = ArClass.create
b = ArClass.find(

a.updated_at == b.updated_at => false

It appears that when the object is created, the underlying Ruby returns a floating point time. Then when the object is retrieved that precision is lost.

AR should probably ensure that these values are consistent

Mac OS X 10.6, Ruby 1.8.7p72, Rails 2.3.4, Mysql behind the class.

Comments and changes to this ticket

  • Rohit Arondekar

    Rohit Arondekar October 6th, 2010 @ 06:41 AM

    • State changed from “new” to “stale”
    • Importance changed from “” to “”

    Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>