Reed,
On 12/16/13 10:32 AM, Reed Law wrote:
> George,
>
> That is indeed what I'm doing when I need to render a collection of
> objects. But what I'm talking about here are UI elements such as a
> widget, button, etc. I don't want to sprinkle if current_user.role ==
> "manager" throughout my views.
I would not, either. I might, however, have a collection of "user
capabilities" that drove the selection of UI elements that support those
capabilities.
- George
> --
> The only way to go fast is to go well.
> ---
> You received this message because you are subscribed to the Google
> Groups "Clean Code Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
clean-code-discu...@googlegroups.com.
> To post to this group, send email to
clean-code...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/clean-code-discussion.