Unless you add methods to the Guest model, it's often easier to check
for a user being signed up first (so it won't call a method that
doesn't exist after).  Depending on how prevalent though, sometimes
it's quicker just to add a stub to the Guest model.

I'm not 100% sure as I haven't checked the page in the book myself but
would guess that's the reasoning.

On Mar 4, 6:55 am, Michael Q <[email protected]> wrote:
> "
> # Make sure that the user is 1. Signed Up & a Coordinator or 2. is an
> Administrator
> (acting_user.signed_up?  &&  acting_user.role = "Coordinator") ||
> acting_user.administrator?
> "
>
> Isn't "making sure the user is signed up" redundant as a user can't be
> a Coordinator unless they are signed up?
>
> Michael Q

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to