change railties dependency for rails 4 compatibility