the bad part: replaced includes with joins wich results in a INNER JOINS instead of a LEFT OUTER JOIN in the final sql query. this might lead to lost data on null-associations. happily, in the openproject core there are only associations using acts_as_activity. if a plugins uses acts_as_activity you should be aware of the JOIN-problem.