Open petehamilton opened 13 years ago
Safer to test for parent.id.blank? rather than assume save() will return false on failure--with some NOSQL dbs, save returns a non-false failure value.
-- Thanks to 'openassist'
Safer to test for parent.id.blank? rather than assume save() will return false on failure--with some NOSQL dbs, save returns a non-false failure value.
-- Thanks to 'openassist'