lib/place/project.rb
# Find all roles used in the project
Find all roles used in the project
Find all roles used in the project
def roles
    tmp = {}
    participations.all.each do |pt|
	  if pt.roles.size > 0
	    pt.roles.all.each{|r| tmp[r] = true}
	  end
	end
	tmp.keys
  end
def roles tmp = { } participations . all . each do | pt | if pt . roles . size > 0 pt . roles . all . each { | r | tmp [ r ] = true } end end tmp . keys end
Find all roles used in the project
Find all roles used in the project