Flowdock
method

to_key

Importance_1
v3.1.0 - Show latest stable - 0 notes - Class: ActiveModel::Conversion
to_key() public

Returns an Enumerable of all key attributes if any is set, regardless if the object is persisted or not.

Note the default implementation uses persisted? just because all objects in Ruby 1.8.x responds to :id.

Show source
Register or log in to add new notes.