object_id

obj.__id__ â integer
obj.object_id â integer
Instance Public methods

Returns an integer identifier for obj.

The same number will be returned on all calls to id for a given object, and no two active objects will share an id.

#object_id is a different concept from the :name notation, which returns the symbol id of name.

Replaces the deprecated Object#id.

doc_ruby_on_rails
2015-04-23 21:22:05
Comments
Leave a Comment

Please login to continue.