What do you think of exposing/documenting record.__exists as there's record.persisted? on Rails? Maybe add a record.isNewRecord as the opposite of isPersisted/exists
When doing await record.destroy() or await record.delete(), assign false to record.__exists
Other suggestion: add await record.update({ ... }) as the same as doing await record.set({ ... }).save() for convenience.
What do you think of exposing/documenting
record.__exists
as there'srecord.persisted?
on Rails? Maybe add arecord.isNewRecord
as the opposite of isPersisted/exists When doingawait record.destroy()
orawait record.delete()
, assignfalse
to record.__existsOther suggestion: add
await record.update({ ... })
as the same as doingawait record.set({ ... }).save()
for convenience.