Loosening rails dependency, to allow it to work on Rails 4