Ecto.Association.assoc_from_query/1

Parsed documentation:
View on GitHub
Retrieves assoc from queryable.

## Examples

    iex> Ecto.Association.assoc_from_query({"custom_source", Model})
    Model

    iex> Ecto.Association.assoc_from_query(Model)
    Model

    iex> Ecto.Association.assoc_from_query("wrong")
    ** (ArgumentError) association queryable must be a model or {source, model}, got: "wrong"
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.