more updates for rails 4, rgeo needs some treatment too