DEV: Allow default scope to be configurable per topic. (PR #15018)

Not exposing this as a plugin API yet as we’re testing it out with a plugin.

GitHub

Nitpick, but I don’t think this check is necessary, because you always re-initialize custom_default_scopes if it is null when you call it:

def self.custom_default_scopes
    @custom_default_scopes ||= []
  end

LGTM

O good catch :+1:

Thank you for reviewing @martin-brennan :slight_smile: