app/models/data_object.rb
# NOTE: Because this CAN be an exemplar on multiple pages, this will return an
# ARRAY! Also note that this will not include auto-exemplars.
Because this CAN be an exemplar on multiple pages, this will return an
ARRAY. Also note that this will not include auto-exemplars.
Because this CAN be an exemplar on multiple pages this will return an ARRAY . Also note that this will not include auto - exemplars .
def exemplar_chosen_by
    User.where(
      id: CuratorActivityLog.where(
        target_id: id, 
        activity_id: [
          Activity.choose_exemplar_image.id,
          Activity.choose_exemplar_article.id,
          Activity.set_exemplar_data.id
        ]
      ).pluck(:user_id)
    )
  end
def exemplar_chosen_by User . where ( id : CuratorActivityLog . where ( target_id : id , activity_id : [ Activity . choose_exemplar_image . id , Activity . choose_exemplar_article . id , Activity . set_exemplar_data . id ] ) . pluck ( :user_id ) ) end
NOTE: Because this CAN be an exemplar on multiple pages, this will return an
ARRAY!
NOTE : Because this CAN be an exemplar on multiple pages this will return an ARRAY!
# Acts as data object id, with these activities. Sigh. Stupid.