<commit_before>= rolify

Very simple Roles library without any authorization enforcement (built to use with cancan) supporting scope on object.

Let's see an example:  

  user.is_moderator?(Forum.first) => # return false if user is moderator of another Forum

This library was intended to be used with CanCan[https://github.com/ryanb/cancan] and devise[https://github.com/plataformatec/devise/] but should be generic enough to be used by any other authentication/authorization solutions.

== DISCLAIMER : still in early stage of development. Like a pre-alpha release, kind of ;-)

Status:
[x] generators
[x] migration file
[ ] specs
[ ] code

== Requirements

* >= Rails 3
* ActiveRecord ORM

== Installation

In <b>Rails 3</b>, add this to your Gemfile and run the +bundle+ command.

  gem "rolify"

Alternatively, you can install it as a plugin.

  rails plugin install git://github.com/EppO/rolify.git

== Getting Started

=== 1. Generate Role Modle

First, create your Role model and migration file using this generator:<commit_msg>strong warning<commit_after>= rolify

Very simple Roles library without any authorization enforcement (built to use with cancan) supporting scope on object.

Let's see an example:  

  user.is_moderator?(Forum.first) => # return false if user is moderator of another Forum

This library was intended to be used with CanCan[https://github.com/ryanb/cancan] and devise[https://github.com/plataformatec/devise/] but should be generic enough to be used by any other authentication/authorization solutions.

== DISCLAIMER : still in early stage of development. Like a pre-alpha release, kind of ;-) *You've been warned !*

Status:
(x) generators
(x) migration file
( ) specs
( ) code

== Requirements

* >= Rails 3
* ActiveRecord ORM

== Installation

In <b>Rails 3</b>, add this to your Gemfile and run the +bundle+ command.

  gem "rolify"

Alternatively, you can install it as a plugin.

  rails plugin install git://github.com/EppO/rolify.git

== Getting Started

=== 1. Generate Role Modle

First, create your Role model and migration file using this generator:
{'fraction_non_alphanumeric': 0.0877025738798856, 'fraction_numerical': 0.002859866539561487, 'mean_word_length': 4.273869346733668, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7164974', 'n_tokens_mistral': 642, 'n_tokens_neox': 600, 'n_words': 259}