make the name scoped queries work in Rails 2.3.x