Persistence¶
Constants¶
- N1_N2_STRING
- ACTIVEREL_NODE_MATCH_STRING
- USES_CLASSNAME
Methods¶
#_active_record_destroyed_behavior?
- #_destroyed_double_check?
These two methods should be removed in 6.0.0
+ show/hide code
#apply_default_values
- #association_proxy_cache
Should probably find a way to not need this
+ show/hide code
#cache_key
#create_model
#create_or_update
#destroy
- #destroyed?
Returns +true+ if the object was destroyed.
+ show/hide code
#exist?
#freeze
#frozen?
- #new?
Returns +true+ if the record hasn’t been saved to Neo4j yet.
+ show/hide code
- #new_record?
Returns +true+ if the record hasn’t been saved to Neo4j yet.
+ show/hide code
- #persisted?
Returns +true+ if the record is persisted, i.e. it’s not a new record and it was not destroyed
+ show/hide code
#props
#reload
#reload_from_database
#save
#save!
- #update
Updates this resource with all the attributes from the passed-in Hash and requests that the record be saved. If saving fails because the resource is invalid then false will be returned.
+ show/hide code
- #update!
Same as {#update_attributes}, but raises an exception if saving fails.
+ show/hide code
- #update_attribute
Convenience method to set attribute and #save at the same time
+ show/hide code
- #update_attribute!
Convenience method to set attribute and #save! at the same time
+ show/hide code
- #update_attributes
Updates this resource with all the attributes from the passed-in Hash and requests that the record be saved. If saving fails because the resource is invalid then false will be returned.
+ show/hide code
- #update_attributes!
Same as {#update_attributes}, but raises an exception if saving fails.
+ show/hide code
#update_model