Forum: Ruby on Rails warning: Object#id will be deprecated; use Object#object_id

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
B9bdce0cdf748082e2d9826e24a5e94b?d=identicon&s=25 Karim Maknojia (Guest)
on 2007-04-10 18:48
(Received via mailing list)
Hello friends,
I am getting this warning  *warning: Object#id will be deprecated; use
Object#object_id* on the following line of code

def to_s()
    output = "\nDO Class: " + self.class.to_s() + "\n"
    output += "  id: " + id().to_s() + "\n"
    output += "  position: " + position.to_s() + "\n"
    output += "  photo_id: " + + "\n"
    *output += "  slideshow_id: " + + "\n"
*    output += "end"
    return output

I dont know what does it mean. I will appreciate if any one can help me
Thank you in advance
8310c5a7c769345114597bcdef111488?d=identicon&s=25 Ben Munat (Guest)
on 2007-04-10 21:12
(Received via mailing list)
I would think that somehow slideshow does not hold an active record
object when it gets to that line... so it call the deprecated

This topic is locked and can not be replied to.