def resolve_friendly_id_conflict(candidates)
      uuid = SecureRandom.uuid
      [
        apply_slug_limit(candidates.first, uuid),
        uuid
      ].compact.join(friendly_id_config.sequence_separator)
    end
def resolve_friendly_id_conflict(candidates)
      uuid = SecureRandom.uuid
      [
        apply_slug_limit(candidates.first, uuid),
        uuid
      ].compact.join(friendly_id_config.sequence_separator)
    end
Public: Resolve conflicts.

 This method adds UUID to first candidate and truncates (if `slug_limit` is set).

 Examples:

   resolve_friendly_id_conflict(['12345'])
   # => '12345-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'

   FriendlyId.defaults { |config| config.slug_limit = 40 }
   resolve_friendly_id_conflict(['12345'])
   # => '123-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'

 candidates - the Array with candidates.

 Returns the String with new slug.