Support Rails 3.1