app/models/institution.rb
def is_managed_by?(user)
    match = projects.find do |p|
      user.person.is_project_administrator?(p)
    end
    !match.nil?
  end
# determines if this person is the member of a project for which the user passed is a project manager
determines if this person is the member of a project for which the user passed is a project manager
determines if this person is the member of a project for which the user passed is a project manager
def is_managed_by?(user)
    match = projects.find do |p|
      user.person.is_project_administrator?(p)
    end
    !match.nil?
  end
def is_managed_by? ( user ) match = projects . find do | p | user . person . is_project_administrator? ( p ) end ! match . nil? end
determines if this person is the member of a project for which the user passed is a project manager
determines if this person is the member of a project for which the user passed is a project manager
user