adding compatibility with activerecord-postgis-adapter - 2