app/models/person.rb
#retrieve the items that this person is contributor (owner for assay)
retrieve the items that this person is contributor (owner for assay)
retrieve the items that this person is contributor ( owner for assay )
def contributed_items
     items = []
     items |= assays
     unless user.blank?
       items |= user.assets
       items |= user.presentations
       items |= user.events
       items |= user.investigations
       items |= user.studies
     end
     items
  end
def contributed_items items = [ ] items |= assays unless user . blank? items |= user . assets items |= user . presentations items |= user . events items |= user . investigations items |= user . studies end items end
retrieve the items that this person is contributor (owner for assay)
retrieve the items that this person is contributor ( owner for assay )