Good fences make good neighbors, unless your neighbor is Ted Nugent
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
generators
lib
tasks
test
.gitignore
MIT-LICENSE
README.textile
Rakefile
init.rb
install.rb
uninstall.rb

README.textile

Fences

Simply put, Fences is a easy way to implement authorization in your Rails application.

Installation

1. Run this command:


./script/generate fences

2. Add ‘fencable’ to your user model.


class User < ActiveRecord::Base
fencable
end

3. Run this command:


./script/generate allowance some_role

4. Run your migrations.


rake db:migrate

Example

We hope to have some code examples coming very soon.

Copyright © 2009 CommonThread, released under the MIT license.