X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/baf9ff0ec39c13f52ee8d4f087641dc5fcc9c53b..fcc68b4dc198b7cb0cf93467d96038b0844675fe:/vendor/plugins/geokit/init.rb diff --git a/vendor/plugins/geokit/init.rb b/vendor/plugins/geokit/init.rb new file mode 100644 index 0000000..d36503e --- /dev/null +++ b/vendor/plugins/geokit/init.rb @@ -0,0 +1,13 @@ +# Load modules and classes needed to automatically mix in ActiveRecord and +# ActionController helpers. All other functionality must be explicitly +# required. +require 'geo_kit/defaults' +require 'geo_kit/mappable' +require 'geo_kit/acts_as_mappable' +require 'geo_kit/ip_geocode_lookup' + +# Automatically mix in distance finder support into ActiveRecord classes. +ActiveRecord::Base.send :include, GeoKit::ActsAsMappable + +# Automatically mix in ip geocoding helpers into ActionController classes. +ActionController::Base.send :include, GeoKit::IpGeocodeLookup