As stated in the previous post, the frame is not a good reliable ground. Especially the trailer ball which can be dirty and rattling around during transit. You need a good ground which the trailer plug should provide. This ground will have to carry the current load of the entire trailer, lights, breaks, accessories, and the boat charging circuit. Therefore the charging circuit needs to be limited to well below the 30 amp capacity of the wire in the connector, Usually #10, rated at 30 amp. To do this additional resistance is added to the charging wire to limit its ability to transmit current.
In the last example we assumed bout 200 feet of #10 wire or 0.2 ohms. My R29 tows at about 60 feet so it may be a bit much. With the vehicle running the voltage is around 14. If the boats batteries are at 10 that is a 4 volt potential. Current = Volts / Resistance. In this case 4 / .2 = 20 amps. Add that to the trailer draw and you may exceed the capacity of the ground, and if that wire fries you have no breaks. This situation would be worse if the resistance is less than the 0.2 ohm estimate or if the boats batteries were at less than 10 volts. Each a possibility. You may want to reconsider this hook up and use one with a dedicated resistor in the line to limit the current to lower levels.