adding compatibility with activerecord-postgis-adapter