I see this warning in my log
…/app/models/user.rb:179: warning: Object#id will be deprecated; use
Object#object_id
I am using in my user model ‘self.id’ to the mysql record id of the
user which gives me correctly 25
the self.object_id is not the sql record id…
… whta’s the right writing ??
thanks
kad
Kad K. wrote:
I see this warning in my log
…/app/models/user.rb:179: warning: Object#id will be deprecated; use
Object#object_id
Usually this error occurs when you call id on something that isn’t an
ActiveRecord::Base object. Check all possible calls of #id at line 179
of user.rb. Then insert “puts object.class.name” debug statement for
each object on which you call id to verify the actual class.
Lionel