Changed dependency to Rails 3.0 or greater