This project is archived and is in readonly mode.

#2569 ✓invalid
mud

deprecated warning for dom_id

Reported by mud | April 27th, 2009 @ 05:15 PM | in 2.x

Calling dom_id returns:

warning: Object#id will be deprecated; use Object#object_id

easily fixed by calling record.object_id instead of record.id.

Comments and changes to this ticket

  • Frederick Cheung

    Frederick Cheung May 7th, 2009 @ 11:30 PM

    • State changed from “new” to “invalid”

    That would however break things. dom_id is supposed to be using id (the primary key from the database) not object_id (some random transient identifier). If you're getting this warning it's probably because you are passing nil to dom_id.

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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Tags

Pages