def show
      return if activities.blank?

      activities.map do |activity|
        activity.organization_lazy
        activity.resource_lazy
        activity.participatory_space_lazy
        activity.component_lazy
      end

      render
    end
def show
      return if activities.blank?

      activities.map do |activity|
        activity.organization_lazy
        activity.resource_lazy
        activity.participatory_space_lazy
        activity.component_lazy
      end

      render
    end
def show return if activities . blank? activities . map do | activity | activity . organization_lazy activity . resource_lazy activity . participatory_space_lazy activity . component_lazy end render end
Since we're rendering each activity separatedly we need to trigger
 BatchLoader in order to accumulate all the ids to be found later.
Since we re rendering each activity separatedly we need to trigger BatchLoader in order to accumulate all the ids to be found later .