Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Complete authorization solution for Rails that supports roles and a RESTish, resource-style declaration of permission rules.
Ruby
tree: 4341edd4d1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
MIT-LICENSE
README
Rakefile
init.rb

README

Aegis
=====


Example
=======

class Permissions < Aegis::Permissions

  role :moderator
  role :guest
  role :administrator, :default_permission => :allow
  
  permission :edit_user do
    allow :moderator
    deny :guest
    allow :moderator do |role_user, target_user|
      role_user == target_user.creator
    end
  end
  
  permission :edit_users do
    allow :moderator
  end

end


Credits
=======

Copyright (c) 2009 Henning Koch, released under the MIT license
Something went wrong with that request. Please try again.