From 633219b003033dff9b886b3879dbc9e890bdaa11 Mon Sep 17 00:00:00 2001 From: Godwin Date: Fri, 3 Jun 2016 23:01:33 -0700 Subject: [PATCH] Fixed workshop saving --- app/models/workshop.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/workshop.rb b/app/models/workshop.rb index 375bdfd..9fd33e7 100644 --- a/app/models/workshop.rb +++ b/app/models/workshop.rb @@ -31,7 +31,7 @@ class Workshop < ActiveRecord::Base def active_facilitators users = [] workshop_facilitators.each do |u| - users << User.find(u.user_id) unless u.role.to_sym == :requested || u.user.nil? + users << User.find(u.user_id) unless u.role.to_sym == :requested || u.user_id.nil? end return users end