I'm accessing a rails model with the typical primary key id
. However, when I access it in a method, I get the following warning.
Object#id will be deprecated; use Object#object_id
It seems it's getting confused between object id, and the primary key for the model. is there a way to make sure its using the field id
?