-
Alex Reisner authoredAlex Reisner authored
init.rb 261 B
ActiveRecord::Base.class_eval do
##
# Include the Geocoder module and set the method name which returns
# the geo-search string.
#
def self.geocoded_by(method_name = :location)
include Geocoder
@geocoder_method_name = method_name
end
end