Mar 14, 2012

Even Better Way To Find Out If Chatter Is Enabled

Last Week, I posted a little method that finds out if chatter is enabled. Thanks to a tip from @ca_peterson, here is a way to do it in a single statement which is probably cheaper processing wise.

public boolean getChatterEnabledBetter() {
    return (Schema.sObjectType.User.isFeedEnabled()) ? true : false;