app/models/data_object.rb
# Preview visibility CAN apply here, so be careful. By default, preview is
# included; otherwise, pages would show up without any association at all, and
# that would be confusing. But note that preview associations should NOT be
# curatable!
Preview visibility CAN apply here, so be careful. By default, preview is
included; otherwise, pages would show up without any association at all, and
that would be confusing. But note that preview associations should NOT be
curatable!
Preview visibility CAN apply here so be careful . By default preview is included ; otherwise pages would show up without any association at all and that would be confusing . But note that preview associations should NOT be curatable!
def data_object_taxa_by_visibility(which = {})
    good_ids = [Visibility.get_visible.id]
    good_ids << Visibility.get_preview.id unless which[:preview] == false
    good_ids << Visibility.get_invisible.id if which[:invisible]
    uncached_data_object_taxa.select { |assoc| good_ids.include?(assoc.visibility_id) }
  end
def data_object_taxa_by_visibility ( which = { } ) good_ids = [ Visibility . get_visible . id ] good_ids << Visibility . get_preview . id unless which [ :preview ] == false good_ids << Visibility . get_invisible . id if which [ :invisible ] uncached_data_object_taxa . select { | assoc | good_ids . include? ( assoc . visibility_id ) } end
Preview visibility CAN apply here, so be careful.
Preview visibility CAN apply here so be careful .
which
<not_specific>