def apply_addresslogic(options = {})
      n = options[:namespace]
      options[:fields] ||= [
        "#{n}street1".to_sym,
        "#{n}street2".to_sym,
        ["#{n}city".to_sym, ["#{n}state".to_sym, "#{n}zip".to_sym]],
        "#{n}country".to_sym
      ]
      self.addresslogic_options = options
      
      include Addresslogic::InstanceMethods
    end
def apply_addresslogic(options = {})
      n = options[:namespace]
      options[:fields] ||= [
        "#{n}street1".to_sym,
        "#{n}street2".to_sym,
        ["#{n}city".to_sym, ["#{n}state".to_sym, "#{n}zip".to_sym]],
        "#{n}country".to_sym
      ]
      self.addresslogic_options = options
      
      include Addresslogic::InstanceMethods
    end
Mixes in useful methods for handling addresses.

 === Options

 * <tt>fields:</tt> array of fields (default: [:street1, :street2, [:city, [:state, :zip]], :country])
 * <tt>namespace:</tt> prefixes fields names with this, great for use with composed_of in ActiveRecord.