Coderwall
Ruby
Python
JavaScript
Front-End
Tools
iOS
More
Tips
Ruby
Python
JavaScript
Front-End
Tools
iOS
PHP
Android
.NET
Java
Jobs
Jobs
Sign In or Up
Joined August 2014
·
freemanoid
Alexandr Elhovenko
Minsk, Belarus
·
·
0 Protips
1 Comments
Posted to
persisted? && new_record? for checking existing record
over 1 year ago
persisted not exactly opposite to the #new_record because it also checks if the object was destroyed.
Achievements
1 Karma
0 Total ProTip Views
persisted not exactly opposite to the #new_record because it also checks if the object was destroyed.