activegraph

https://github.com/neo4jrb/activegraph

Ruby

An active model wrapper for the Neo4j Graph Database for Ruby.

Neo4j::ActiveNode::Persistence#save

Saves the model.

If the model is new a record gets created in the database, otherwise the existing record gets updated.
If perform_validation is true validations run.
If any of them fail the action is cancelled and save returns false.
If the flag is false validations are bypassed altogether.
See ActiveRecord::Validations for more information.
There's a series of callbacks associated with save.
If any of the before_* callbacks return false the action is cancelled and save returns false.

Source | Google | Stack overflow

Edit

git clone [email protected]:neo4jrb/activegraph.git

cd activegraph

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Neo4j--ActiveNode--Persistence-save-for-pr


# Commit to git

git add git commit -m "better docs for Neo4j::ActiveNode::Persistence#save"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Neo4j--ActiveNode--Persistence-save-for-pr

hub pull-request


# Celebrate!