module Geocoder::Store::ActiveRecord::ClassMethods

def add_exclude_condition(conditions, exclude)


Expects conditions as an array or string. Returns array.
Adds a condition to exclude a given object by ID.
#
def add_exclude_condition(conditions, exclude)
  conditions = [conditions] if conditions.is_a?(String)
  if exclude
    conditions[0] << " AND #{full_column_name(primary_key)} != ?"
    conditions << exclude.id
  end
  conditions
end