Skip to content

Instantly share code, notes, and snippets.

@dlikhten
Created May 22, 2010 21:37
Show Gist options
  • Save dlikhten/410384 to your computer and use it in GitHub Desktop.
Save dlikhten/410384 to your computer and use it in GitHub Desktop.
class Billing < ActiveRecord::Base
has_many :addresses
has_many :billing_addresses, :conditions => {:address_type => 'billing'}, :class_name => "Address"
has_many :mailing_addresses, :conditions => {:address_type => 'mailing'}, :class_name => "Address"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment