The #new_record? function determines if a record has been saved. But it is always false in the after_save hook. Is there a way to determine whether the record i
I was looking to use this for an after_save callback.
A simpler solution is to use id_changed? (since it won't change on update) or even created_at_changed? if timestamp columns are present.
Update: As @mitsy points out, if this check is needed outside of callbacks then use id_previously_changed?. See docs.