Remove strict dependency on Rails 3