Made dependency on Rails 3.0 less strict