Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

deprecated warning for dom_id

#2569

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.

Reported by mud · April 27th, 2009 @ 05:15 PM

State: invalid
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Frederick Cheung
    Frederick Cheung
    • 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.

    May 7th, 2009 @ 11:30 PM