Method: Moribus#to_new_record!

Defined in:
lib/moribus.rb

#to_new_record!Object

Marks self as a new record. Sets id attribute to nil, but memorizes the old value in case of exception.



65
66
67
68
69
# File 'lib/moribus.rb', line 65

def to_new_record!
  store_before_to_new_record_values
  reset_persistence_values
  @new_record = true
end