Relax Rails dependency and depend on railties instead of rails itself