Skip to content
Browse files

Adding state association to contact

  • Loading branch information...
1 parent 6588f30 commit b47dc7689bcbd38454679a7e6b6153de91624187 @pat pat committed Sep 29, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 app/models/contact.rb
View
2 app/models/contact.rb
@@ -1,4 +1,6 @@
class Contact < ActiveRecord::Base
+ belongs_to :state
+
define_index do
indexes [first_name, last_name], :as => :name
indexes street_address, city, state, country, postal_code

0 comments on commit b47dc76

Please sign in to comment.
Something went wrong with that request. Please try again.