app/models/questionnaire.rb in hackathon_manager-0.6.1 vs app/models/questionnaire.rb in hackathon_manager-0.6.2

- old
+ new

@@ -91,10 +91,14 @@ def school School.find(school_id) if school_id end + def school_name + school.name if school_id + end + def full_name "#{first_name} #{last_name}" end def full_location @@ -191,12 +195,12 @@ School.increment_counter(:questionnaire_count, school_id) end end def queue_triggered_email_update - Message.queue_for_trigger("questionnaire.#{acc_status}", id) if saved_change_to_acc_status? + Message.queue_for_trigger("questionnaire.#{acc_status}", user_id) if saved_change_to_acc_status? end def queue_triggered_email_create - Message.queue_for_trigger("questionnaire.#{acc_status}", id) + Message.queue_for_trigger("questionnaire.#{acc_status}", user_id) end end