pt-43137515 Reimplemented LDC specific changes that were done on Rails 2.3.17 version of Geokit.