Relax dependency on railties for Rails 4 compatibility