diff --git a/api/app/models/annotation.rb b/api/app/models/annotation.rb index a28c2c4cff..0228da8972 100644 --- a/api/app/models/annotation.rb +++ b/api/app/models/annotation.rb @@ -339,7 +339,7 @@ def trigger_event_creation class << self def apply_filtering_loads - eager_load(:annotation_node, :creator, :membership_comments, :project, text_section: { text: %i[titles] }) + includes(:annotation_node, :creator, :membership_comments, :project, text_section: { text: %i[titles] }) end # @param [ReadingGroupMembership, String] rgm