james2m / canard

Makes role based authorization in Rails really simple. Wraps CanCan and RoleModel up with a smattering of syntactic sugar, some generators and scopes.
MIT License
125 stars 28 forks source link

Instalation #3

Closed swistaczek closed 12 years ago

swistaczek commented 12 years ago

HI, One question about instalation. Should I define any column for storing role attributes? I could not find any details about this in readme and sourcecode.

mjonuschat commented 12 years ago

Canard uses role_model which in turn expects an integer column named roles_mask to exist in the database table.

You should be ale to customize the column using roles_attribute :custom_field

james2m commented 12 years ago

I'll update the docs. In the next version.

swistaczek commented 12 years ago

Thanks for answer.