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

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: " + photo.id().to_s() + “\n”
output += " slideshow_id: " + slideshow.id().to_s() + “\n” output += “end”
return output

end

I dont know what does it mean. I will appreciate if any one can help me in this.

Thank you in advance

karry

I would think that somehow slideshow does not hold an active record
object when it gets to that line... so it call the deprecated Object.id
instead.

b

Karim Maknojia wrote: