Update railties version dependency for compatibility with Rails 4