Hello,
I have put up an example which shows how to use migrations to add
permissions to
different roles for the various controllers/actions.
http://cuttingtheredtape.blogspot.com/2006/03/rails-user-engine-adding-permissions.html
Hope it is useful.
Cheers.
Surendra S.
http://ssinghi.kreeti.com, http://www.kreeti.com
,----
| “War is Peace! Freedom is Slavery! Ignorance is Strength!”
| – Orwell, 1984, 1948
`----
Wow, that looks pretty terrific. It seems like it would be beneficial
for UserEngine to override the default behavior of rake migrate to have
it perform a sync_permissions on start.
Surendra S. wrote:
Hello,
I have put up an example which shows how to use migrations to add
permissions to
different roles for the various controllers/actions.
Smorgasbord - Politics, Lisp, Rails, Fencing, etc.: Rails User Engine - Adding permissions
Hope it is useful.
Cheers.
Surendra S.
http://ssinghi.kreeti.com, http://www.kreeti.com
,----
| “War is Peace! Freedom is Slavery! Ignorance is Strength!”
| – Orwell, 1984, 1948
`----