Change railties in dependencies to make gem compatible with Rails 4