diff --git a/README.rdoc b/README.rdoc index 145f4f4..d5f41c1 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,17 +1,17 @@ = RoleModel -Ever needed to assign roles to a model, say a User, and build conditional -behaviour on top of that? +RoleModel is the framework agnostic, efficient and declarative way to do +(user) roles. Assigned roles will be efficiently stored as a bitmask +directly into your model within an configurable attribute. -With RoleModel assigned roles will be stored as a bitmask in an configurable -attribute (default: roles_mask). Here's how to get started: +It works like this: # given a User class with a roles_mask attribute require 'rubygems' require 'role_model' class User - attr_accessor :roles_mask # in real life this would be an persisted attribute / DB-column + attr_accessor :roles_mask # in real life this would be an persisted attribute include RoleModel diff --git a/role_model.gemspec b/role_model.gemspec index e54a8f3..22e5d49 100644 --- a/role_model.gemspec +++ b/role_model.gemspec @@ -10,7 +10,7 @@ Gem::Specification.new do |s| s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Martin Rehfeld"] s.date = %q{2010-05-29} - s.description = %q{Ever needed to assign roles to a model, say a User, and build conditional behaviour on top of that? Enter RoleModel -- roles have never been easier! Just declare your roles and you are done. Assigned roles will be stored as a bitmask.} + s.description = %q{RoleModel is the framework agnostic, efficient and declarative way to do user roles. Assigned roles will be efficiently stored as a bitmask directly into your model within an configurable attribute.} s.email = %q{martin.rehfeld@glnetworks.de} s.extra_rdoc_files = [ "LICENSE",