]> projects.mako.cc - selectricity-live/blob - vendor/plugins/geokit/init.rb
referenced mailing list and gitorious (finally?)
[selectricity-live] / vendor / plugins / geokit / init.rb
1 # Load modules and classes needed to automatically mix in ActiveRecord and 
2 # ActionController helpers.  All other functionality must be explicitly 
3 # required.
4 require 'geo_kit/defaults'
5 require 'geo_kit/mappable'
6 require 'geo_kit/acts_as_mappable'
7 require 'geo_kit/ip_geocode_lookup'
8
9 # Automatically mix in distance finder support into ActiveRecord classes.
10 ActiveRecord::Base.send :include, GeoKit::ActsAsMappable
11
12 # Automatically mix in ip geocoding helpers into ActionController classes.
13 ActionController::Base.send :include, GeoKit::IpGeocodeLookup

Benjamin Mako Hill || Want to submit a patch?