Skip to content
Snippets Groups Projects
init.rb 261 B
Newer Older
  • Learn to ignore specific revisions
  • 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