lib/moribus.rb
# Set persistence values of id, updated_at and created_at back.
Set persistence values of id, updated_at and created_at back.
Set persistence values of id updated_at and created_at back .
def restore_before_to_new_record_values
    values = @_before_to_new_record_values
    self.id = values[:id]
    self.created_at = values[:created_at] if respond_to?(:updated_at=)
    self.updated_at = values[:updated_at] if respond_to?(:updated_at=)
  end
def restore_before_to_new_record_values values = @_before_to_new_record_values self . id = values [ :id ] self . created_at = values [ :created_at ] if respond_to? ( :updated_at= ) self . updated_at = values [ :updated_at ] if respond_to? ( :updated_at= ) end
Set persistence values of id, updated_at and created_at back.
Set persistence values of id updated_at and created_at back .