method

add_includes

add_includes(&block)
public

Add associations specified via the :includes option. Expects a block that takes as arguments:

  +association+ - name of the association
  +records+     - the association record(s) to be serialized
  +opts+        - options for the association records