Displaying 1 result from an estimated 1 matches for "is_moderator_of_what".
2006 Jul 11
0
Should I use exclamation marks for methods that change associations?
...ssible change the join table and the Role table.
On the other hand, I''m leaning toward adding the exclamation mark
because it clarifies the difference between methods.
user.has_role! ''site_admin''
user.has_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 &quo...