method
serializable_add_includes
v6.0.0 -
Show latest stable
- Class:
ActiveModel::Serialization
serializable_add_includes(options = {})private
Add associations specified via the :include 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