Feature/rails3 fix activity

Finally implements https://www.openproject.org/issues/1790