Method: DataMapper::Resource#save

Defined in:
lib/dm-core/resource.rb

#saveBoolean

Save the instance and loaded, dirty associations to the data-store

Returns:

  • (Boolean)

    true if Resource instance and all associations were saved



404
405
406
407
408
409
# File 'lib/dm-core/resource.rb', line 404

def save
  assert_not_destroyed(:save)
  retval = _save
  assert_save_successful(:save, retval)
  retval
end