search for: is_eligible_for

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

2006 Jul 11
0
Should I use exclamation marks for methods that change associations?
...ith the new dynamic methods, we give the user-like model some flexibility: user.is_moderator_of group --> sets user to have role "moderator" for object group. user.is_administrator --> sets user to have role "administrator" not really tied to any object. user.is_eligible_for award --> sets user to have role "eligible" for object award. In the discussions I''ve read on proper use of exclamation marks, some say it should only be used when destructive effects are not obvious from the name. So #delete doesn''t need an exclamation mark. Exclam...