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.

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--Query--QueryProxy-scoping-for-pr


# Commit to git

git add git commit -m "better docs for Neo4j::ActiveNode::Query::QueryProxy#scoping"


# 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--Query--QueryProxy-scoping-for-pr

hub pull-request


# Celebrate!