search for: has_blahs

Displaying 1 result from an estimated 1 matches for "has_blahs".

2006 Jul 11
0
Should I use exclamation marks for methods that change associations?
..._role? ''site_admin'' user.is_moderator_of_what user.is_moderator_of! group user.is_moderator_of? group group.has_moderators group.has_moderators? The "group.has_moderators" case shows how there might be some ambiguity. Methods like has_blahs on models return an array of user objects that have role "blah". The has_moderators method doesn''t set a role, but it might be clear because saying some model "has moderators" doesn''t mean you are setting those moderators. Comments are appreciated. -Bill