circumventing a bug in Rails 3 #193