class ActiveForce::Association::BelongsToAssociationProjectionBuilder
Public Instance Methods
projections()
click to toggle source
# File lib/active_force/association/eager_load_projection_builder.rb, line 77 def projections association_field = if parent_association_field.present? "#{ parent_association_field }.#{ association.sfdc_association_field }" else association.sfdc_association_field end selected_fields = query_fields || association.relation_model.fields selected_fields.map do |field| "#{ association_field }.#{ field }" end end