Forum: Ruby on Rails Login generator ACL: hard-coded roles & permissions

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
beattie.mark (Guest)
on 2005-11-21 03:41
(Received via mailing list)
This is probably a Ruby questions as it really relates to creating
but what I'd like to do is take the roles and permissions tables used by
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
model (users) with with hard coded classes (roles, permissions)? I would
to keep the class inheritances so I could do
Account.find(@current_account).roles.find(@role_id).users and things



Mark B.
Easy Schedule Management
This topic is locked and can not be replied to.