vendor/engines/proposals/app/models/proposal.rb
# Returns an array of values from a proposal to be used in a pending
# CSV data row.
Returns an array of values from a proposal to be used in a pending
CSV data row.
Returns an array of values from a proposal to be used in a pending CSV data row .
def pending_csv_data_values(proposal, reviewers)
      speaker1 = proposal.talk.speakers[0]
      data = [proposal.talk.duration, proposal.talk.title, proposal.status, proposal.talk.track_name, proposal.talk.speakers.to_a.join(";"),
        speaker1.first_name, speaker1.last_name,
        speaker1.city, speaker1.state, speaker1.country,
        speaker1.company, speaker1.email, speaker1.twitter_id]
      user_ratings = proposal.comments_and_appeal_ratings
      reviewers.inject(data){|d, reviewer| d << user_rating(reviewer, user_ratings)}
    end
def pending_csv_data_values ( proposal , reviewers ) speaker1 = proposal . talk . speakers [ 0 ] data = [ proposal . talk . duration , proposal . talk . title , proposal . status , proposal . talk . track_name , proposal . talk . speakers . to_a . join ( ";" ) , speaker1 . first_name , speaker1 . last_name , speaker1 . city , speaker1 . state , speaker1 . country , speaker1 . company , speaker1 . email , speaker1 . twitter_id ] user_ratings = proposal . comments_and_appeal_ratings reviewers . inject ( data ) { | d , reviewer | d << user_rating ( reviewer , user_ratings ) } end
Returns an array of values from a proposal to be used in a pending
CSV data row.
Returns an array of values from a proposal to be used in a pending CSV data row .
proposal
reviewers