app/helpers/works_helper.rb
# Returns true or false to determine whether the work associations should be included
Returns true or false to determine whether the work associations should be included
Returns true or false to determine whether the work associations should be included
def show_associations?(work)
    work.recipients.present? ||
    work.approved_related_works.where(translation: true).exists? ||
    work.parent_work_relationships.exists? ||
    work.challenge_claims.present?
  end
def show_associations? ( work ) work . recipients . present? || work . approved_related_works . where ( translation : true ) . exists? || work . parent_work_relationships . exists? || work . challenge_claims . present? end
Returns true or false to determine whether the work associations should be included
Returns true or false to determine whether the work associations should be included
work