Added support for safe versions of Rails 3.0 and 3.1.