model_instant.new_record? # => true: just created
model_instant.new_record? # => false: created sometime ago
I use this method quite often but can't remember the name so I write a post about it with the hope that the method name will be burned in my brain :D
No comments:
Post a Comment