Rails 3 support.