pimp elevator pitch

This commit is contained in:
Martin Rehfeld 2010-05-30 13:10:42 +02:00
parent 49e33ff355
commit b93f38af07
2 changed files with 6 additions and 6 deletions

View file

@ -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: <tt>roles_mask</tt>). 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

View file

@ -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",