Feature/rails3 fix adding related issue

[OPF #476] fixes adding related issue