Em 07-07-2011 16:14, Jarrod Roberson escreveu:
I don't have anything in committerships that matches the suggested solution to this problem

mysql> select * from committerships where repository_id is null;
Empty set (0.00 sec)

mysql> select id from repositories where project_id is null;
Empty set (0.00 sec)

mysql> select id from repositories where project_id not in ( select id from projects );
Empty set (0.01 sec)

Are you sure you're using the same database (same environment)?

Take a look at this:

all_project_ids << committerships.map{|p| p.repository.project_id }

NoMethodError (undefined method `project_id' for nil:NilClass):
  app/models/group.rb:85:in `all_related_project_ids'

That means that p.repository == nil (which means repository_id is null). If there wasn't any record for committerships with repository_id == null, I have no idea what else could generate the above error.

--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

Reply via email to