method
persisted?
rails latest stable - Class:
ActiveRecord::Persistence
persisted?()public
Returns true if the record is persisted, i.e. it’s not a new record and it was not destroyed, otherwise returns false.
2Notes
Opposite of #new_record?
So that next time I look I find it.
Not quite opposite of new_record?
#new_record? will not check if the record has been destroyed