Added support for Rails 3.0 - closes #10