make named scopes Rails 2.3.x compatible