1 # Load modules and classes needed to automatically mix in ActiveRecord and
2 # ActionController helpers. All other functionality must be explicitly
4 require 'geo_kit/defaults'
5 require 'geo_kit/mappable'
6 require 'geo_kit/acts_as_mappable'
7 require 'geo_kit/ip_geocode_lookup'
9 # Automatically mix in distance finder support into ActiveRecord classes.
10 ActiveRecord::Base.send :include, GeoKit::ActsAsMappable
12 # Automatically mix in ip geocoding helpers into ActionController classes.
13 ActionController::Base.send :include, GeoKit::IpGeocodeLookup