Fast fix for supporting Rails 3.0.x