Module: Geokit::IpGeocodeLookup::ClassMethods

Defined in:
lib/geokit-rails/ip_geocode_lookup.rb

Overview

Class method to mix into active record.

Instance Method Summary collapse

Instance Method Details

#geocode_ip_address(filter_options = {}) ⇒ Object

:nodoc:



14
15
16
17
18
19
20
# File 'lib/geokit-rails/ip_geocode_lookup.rb', line 14

def geocode_ip_address(filter_options = {})
  if respond_to? :before_action
    before_action :store_ip_location, filter_options
  else
    before_filter :store_ip_location, filter_options
  end
end