Initial commit for Rails 3 support