Login generator ACL: hard-coded roles & permissions


#1

This is probably a Ruby questions as it really relates to creating
classes,
but what I’d like to do is take the roles and permissions tables used by
the
access control list example for the login generator out of
ActiveRecord::Base, and instead hard-code them into Rails models.

Any suggestions, or quick-pointers to help get started with mixing an
AR::B
model (users) with with hard coded classes (roles, permissions)? I would
like
to keep the class inheritances so I could do
Account.find(@current_account).roles.find(@role_id).users and things
like
that.

thanks

Mark B.
Easy Schedule Management
http://easy-online-schedule.com