method
test_to_key
v4.2.9 -
Show latest stable
- Class:
ActiveModel::Lint::Tests
test_to_key()public
Responds to to_key
Returns an Enumerable of all (primary) key attributes or nil if model.persisted? is false. This is used by dom_id to generate unique ids for the object.