Another fix for Rails 3.2