v3.2.8 - Show latest stable - 0 notes - Class: ActiveModel::Lint::Tests
test_persisted?() public

Responds to persisted?

Returns a boolean that specifies whether the object has been persisted yet. This is used when calculating the URL for an object. If the object is not persisted, a form for that object, for instance, will be POSTed to the collection. If it is persisted, a form for the object will be PUT to the URL for the object.

Show source
Register or log in to add new notes.