Feature/rails3 query menu items

https://www.openproject.org/issues/2285