app/models/contract.rb
# returns the role of the specified active user or nil if none
returns the role of the specified active user or nil if none
returns the role of the specified active user or nil if none
def role_of(user)
	  return Enrollment::ROLE_FACILITATOR if user == facilitator
		e = participant_enrollment(user)
		return nil if e.nil?
		e.role
	end
def role_of ( user ) return Enrollment :: ROLE_FACILITATOR if user == facilitator e = participant_enrollment ( user ) return nil if e . nil? e . role end
returns the role of the specified active user or nil if none
returns the role of the specified active user or nil if none
user
<not_specific>