add a passed in condition clause possible for Rails 2.3.x