Fangorn protects the access to the node’s content of a tree structure.
Fangorn requires Ruby version **>= 1.8.7** and Rails version **>= 3.0**
For the moment you can get master from the main fangorn repository:
gem "fangorn", :git => "git://github.com/carvid/fangorn.git"
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)