class Esquema::Builder

def associations

Returns:
  • (Array) - The associations of the model.
def associations
  return [] unless model.respond_to?(:reflect_on_all_associations)
  model.reflect_on_all_associations
end