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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A4b45b0467e28925b5103b50f7d39e5d?d=identicon&s=25 beattie.mark (Guest)
on 2005-11-21 02:41
(Received via mailing list)
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 Beattie
Easy Schedule Management
http://easy-online-schedule.com
This topic is locked and can not be replied to.