]> projects.mako.cc - selectricity-live/blob - vendor/plugins/geokit/init.rb
Added logic to pref_table.rhtml to prevent it from throwing an error on an empty...
[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?