def _subscribes_to_optional_target?(key, optional_target_name, subscribe_as_default = ActivityNotification.config.subscribe_as_default)
        _subscribes_to_notification?(key, subscribe_as_default) &&
          evaluate_subscription(subscriptions.where(key: key).first, :subscribing_to_optional_target?, subscribe_as_default, optional_target_name, subscribe_as_default)
      end
def _subscribes_to_optional_target?(key, optional_target_name, subscribe_as_default = ActivityNotification.config.subscribe_as_default)
        _subscribes_to_notification?(key, subscribe_as_default) &&
          evaluate_subscription(subscriptions.where(key: key).first, :subscribing_to_optional_target?, subscribe_as_default, optional_target_name, subscribe_as_default)
      end
Returns if the target subscribes to the specified optional target.
 This method can be overriden.
 @api protected

 @param [String]         key                  Key of the notification
 @param [String, Symbol] optional_target_name Class name of the optional target implementation (e.g. :amazon_sns, :slack)
 @param [Boolean]        subscribe_as_default Default subscription value to use when the subscription record does not configured
 @return [Boolean] If the target subscribes to the specified optional target