Roleup
Incredibly simple role management. Leaves authorization up to you.
Checkout Perm for a simple authorization solution.
Quickstart
gem install roleup
class User
include Roleup::HasRoles
end
user = User.new
user.roles = [:reader, :writer]
user.has_role? :reader # => true
user.has_all_roles? :reader, :writer # => true
user.has_all_roles? :reader, :writer, :editor # => false
user.has_one_role? :writer, :editor, :admin # => true
user.roles << :admin
user.has_role? :admin # => true
user.roles.delete :admin
user.has_role? :admin # => false