Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fangorn protects your trees
Ruby JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
rspec/dummy
.gitignore
Gemfile
MIT-LICENSE
README.rdoc
Rakefile
fangorn.gemspec

README.rdoc

Fangorn

Fangorn protects the access to the node's content of a tree structure.

Requirements

Fangorn requires Ruby version **>= 1.8.7** and Rails version **>= 3.0**

Installation

For the moment you can get master from the main fangorn repository:

gem "fangorn", :git => "git://github.com/carvid/fangorn.git"

Quick Start

In your models:

protect_access_with :owner

To get all accessible records from a protected model:

Person.accessible(@user)

To check the accessibility of a record:

@person.accessible?(@user)

To raise an error if a record is not accessible:

@person.accessible!(@user)
Something went wrong with that request. Please try again.