Sha256: 895ebbb67ba4305c787c923691196c2a0c626673a83ccf448a36a663cc5543c2

Contents?: true

Size: 589 Bytes

Versions: 24

Compression:

Stored size: 589 Bytes

Contents

The *config* generator generates a configuration initializer file for setting up `cream` to use a particular role strategy.

<pre>$ rails g cream:config --strategy NAME</pre>

NAME is the name of a role strategy. 

Strategies with a single role for each user
* admin_field
* role_string
* one_role

Strategies with multiple roles for each user
* roles_mask
* many_roles

Currently role groups are not supported. Feel free to provide an add-on to support this or integrate with an existing 'role group' solution.  

Example usage:

<pre>$ rails g cream:config --strategy admin_field</pre>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
cream-0.5.9 wiki/CONFIG_GENERATOR.txt
cream-0.5.8 wiki/CONFIG_GENERATOR.txt
cream-0.5.7 wiki/CONFIG_GENERATOR.txt
cream-0.5.6 wiki/CONFIG_GENERATOR.txt