Displaying 1 result from an estimated 1 matches for "accepts_no_role".
2006 Jul 11
0
Should I use exclamation marks for methods that change associations?
I''ve been getting some good feedback on the Authorization plugin
(http://www.writertopia.com/developers/authorization). Josh Susser
suggested I use exclamation marks when I''m setting roles. The basic
ways of setting roles uses the #has_role, #has_no_role, #accepts_role,
and #accepts_no_role methods:
user.has_role ''site_admin''
user.has_role ''moderator'', group
user.has_no_role ''site_admin''
user.has_role ''member'', Group
a_model.accepts_role ''moderator'', user...