activegraph
https://github.com/neo4jrb/activegraph
Ruby
An active model wrapper for the Neo4j Graph Database for Ruby.
Neo4j::ActiveNode::Query::QueryProxy#scoping
Scope all queries to the current scope.
.. code-block:: ruby
Comment.where(post_id: 1).scoping do
Comment.first
end
TODO: unscoped
Please check unscoped if you want to remove all previous scopes (including
the default_scope) during the execution of a block.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--QueryProxy-scoping-for-pr
# Commit to gitgit add git commit -m "better docs for Neo4j::ActiveNode::Query::QueryProxy#scoping"
# 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--QueryProxy-scoping-for-pr
hub pull-request
# Celebrate!