Fix the build on Rails 3.2