public
Fork of ptb/geokit
Description: A plugin for maps-based apps with 1) ActiveRecord extensions for geo-based finders (find within X miles); 2) geocoding through multiple providers with failover; 3) geo distance calculations; 4) IP-based location lookup; 5) before_filter for IP geocoder.; forked from official SVN repo to fix bugs
Homepage: http://geokit.rubyforge.org/
Clone URL: git://github.com/isaacfeliu/geokit.git
geokit / init.rb
100644 14 lines (11 sloc) 0.556 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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