activegraph
https://github.com/neo4jrb/activegraph
Ruby
An active model wrapper for the Neo4j Graph Database for Ruby.
Neo4j::ActiveNode::Query::QueryProxyMethods#as_models
Takes an Array of ActiveNode models and applies the appropriate WHERE clause So for a `Teacher` model inheriting from a `Person` model and an `Article` model if you called .as_models([Teacher, Article]) The where clause would look something like: .. code-block:: cypher WHERE (node_var:Teacher:Person OR node_var:Article)
Edit
git clone [email protected]:neo4jrb/activegraph.git
cd activegraph
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Neo4j--ActiveNode--Query--QueryProxyMethods-as_models-for-pr
# Commit to gitgit add git commit -m "better docs for Neo4j::ActiveNode::Query::QueryProxyMethods#as_models"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Neo4j--ActiveNode--Query--QueryProxyMethods-as_models-for-pr
hub pull-request
# Celebrate!