Module: GeoKit::IpGeocodeLookup

Defined in:
lib/geo_kit/ip_geocode_lookup.rb

Overview

Contains a class method geocode_ip_address which can be used to enable automatic geocoding for request IP addresses. The geocoded information is stored in a cookie and in the session to minimize web service calls. The point of the helper is to enable location-based websites to have a best-guess for new visitors.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Mix below class methods into ActionController.



10
11
12
# File 'lib/geo_kit/ip_geocode_lookup.rb', line 10

def self.included(base) # :nodoc:
  base.extend ClassMethods
end